This commit is contained in:
Hivert Quentin
2025-05-22 17:03:24 +02:00
parent 077ba07314
commit fcb688723f
10 changed files with 306 additions and 16 deletions
+4 -4
View File
@@ -48,12 +48,12 @@
Class clazz;
request = (WORequest *)[context request];
response = [context response];
response = (WOResponse *)[context response];
[response setStatus: 200];
[response setHeader: @"text/plain; charset=utf-8" forKey: @"content-type"];
[response setHeader: @"application/json; charset=utf-8" forKey: @"content-type"];
bundle = [NSBundle bundleForClass: NSClassFromString(@"SOGoAPIProduct")];
clazz = [bundle classNamed: @"SOGoApiDispatcher"];
clazz = [bundle classNamed: @"SOGoAPIDispatcher"];
dispatcher = [[clazz alloc] init];
ex = [dispatcher dispatchRequest: request inResponse: response context: context];
@@ -67,7 +67,7 @@
RELEASE(dispatcher);
[[SOGoCache sharedCache] killCache];
//[[SOGoCache sharedCache] killCache];
return response;
}
+1 -1
View File
@@ -121,7 +121,7 @@
SOGoAPI = {
protectedBy = "<public>";
actionClass = "SOGoAPIActions";
actionName = "sogoAPIAction";
actionName = "sogoAPI";
};
casProxy = {
protectedBy = "<public>";