summaryrefslogtreecommitdiff
path: root/Juick/APIClient.m
blob: 1fc2743ee6be7c73f182280cb384d1f46ca9fc25 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//
//  APIClient.m
//  Juick
//
//  Created by Vitaly Takmazov on 22/08/16.
//  Copyright © 2016 com.juick. All rights reserved.
//
#import "APIClient.h"

@implementation APIClient

+(APIClient *) sharedClient {
    static APIClient *sharedAPIClient = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        sharedAPIClient = [[self alloc] init];
    });
    return sharedAPIClient;
}

-(id)init {
    if (self = [super init]) {
        self.manager = [[AFHTTPSessionManager alloc] initWithBaseURL:[NSURL URLWithString:@"https://api.juick.com"]];
    }
    return self;
}

@end