mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-02-17 07:33:57 +00:00
52 lines
704 B
Objective-C
52 lines
704 B
Objective-C
/*
|
|
Copyright (C) todo...
|
|
*/
|
|
|
|
#import <SOGoAPI.h>
|
|
|
|
|
|
@implementation SOGoAPI
|
|
|
|
- (id) init
|
|
{
|
|
[super init];
|
|
|
|
return self;
|
|
}
|
|
|
|
- (void) dealloc
|
|
{
|
|
[super dealloc];
|
|
}
|
|
|
|
- (NSArray *) methodAllowed
|
|
{
|
|
NSArray *result;
|
|
|
|
result = [NSArray arrayWithObjects:@"GET",nil];
|
|
return result;
|
|
}
|
|
|
|
- (BOOL) needAuth
|
|
{
|
|
return YES;
|
|
}
|
|
|
|
- (NSArray *) paramNeeded
|
|
{
|
|
return nil;
|
|
}
|
|
|
|
- (NSDictionary *) action: (WOContext*) ctx withParam: (NSDictionary *) param
|
|
{
|
|
NSDictionary* result;
|
|
|
|
result = [[NSDictionary alloc] initWithObjectsAndKeys:
|
|
@"API not defined", @"error",
|
|
nil];
|
|
[result autorelease];
|
|
return result;
|
|
}
|
|
|
|
|
|
@end /* SOGoAPI */ |