Skip to content
Browse files

Add /config endpoint

  • Loading branch information...
1 parent 7fadfe1 commit 88f111fc640539d2f7468e89247c34a3ad4c7655 @henrikhodne henrikhodne committed Mar 19, 2013
Showing with 5 additions and 0 deletions.
  1. +1 −0 src/TravisAPI.h
  2. +4 −0 src/TravisAPI.m
View
1 src/TravisAPI.h
@@ -18,5 +18,6 @@
- (id)initWithHTTPClient:(TravisHTTPClient *)HTTPClient;
- (RACSignal *)fetchBuildWithID:(NSNumber *)buildID forRepository:(NSString *)slug;
+- (RACSignal *)fetchConfig;
@end
View
4 src/TravisAPI.m
@@ -33,4 +33,8 @@ - (RACSignal *)fetchBuildWithID:(NSNumber *)buildID forRepository:(NSString *)sl
return [[self HTTPClient] requestWithMethod:TravisHTTPClientMethodGET path:path parameters:nil];
}
+- (RACSignal *)fetchConfig {
+ return [[self HTTPClient] requestWithMethod:TravisHTTPClientMethodGET path:@"/config" parameters:@{}];
+}
+
@end

0 comments on commit 88f111f

Please sign in to comment.
Something went wrong with that request. Please try again.