summaryrefslogtreecommitdiff
path: root/Juick/AppDelegate.m
diff options
context:
space:
mode:
Diffstat (limited to 'Juick/AppDelegate.m')
-rw-r--r--Juick/AppDelegate.m8
1 files changed, 7 insertions, 1 deletions
diff --git a/Juick/AppDelegate.m b/Juick/AppDelegate.m
index 7ccaf13..779de12 100644
--- a/Juick/AppDelegate.m
+++ b/Juick/AppDelegate.m
@@ -10,6 +10,7 @@
#import "MessagesViewController.h"
#import "RevealPanelViewController.h"
#import "SWRevealViewController.h"
+#import "LoginViewController.h"
#import "ColorScheme.h"
#import "Message.h"
@@ -30,6 +31,11 @@
AFNetworkActivityIndicatorManager.sharedManager.enabled = YES;
+ NSURL *baseURL = [NSURL URLWithString:@"https://api.juick.com"];
+ AFHTTPClient* client = [[AFHTTPClient alloc] initWithBaseURL:baseURL];
+ RKObjectManager *objectManager = [[RKObjectManager alloc] initWithHTTPClient:client];
+ [RKObjectManager setSharedManager:objectManager];
+
MessagesViewController *messages = [[MessagesViewController alloc] init];
RevealPanelViewController *rear = [[RevealPanelViewController alloc] init];
@@ -51,7 +57,7 @@
split.delegate = messages;
self.viewController = split;
}
- [messages loadFromURL:[NSURL URLWithString:[Message messagesUrl]] withTitle:@"Discover"];
+ [messages loadFromPath:[Message messagesUrl] withParams:nil withTitle:@"Discover"];
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.window.rootViewController = self.viewController;