(fix) added json call to get all mail accounts

pull/105/head
Ludovic Marcotte 2015-08-26 08:27:45 -04:00
parent da821ea6c7
commit 68ef8784a0
1 changed files with 15 additions and 0 deletions

View File

@ -118,6 +118,21 @@
return [accounts jsonRepresentation];
}
- (WOResponse *) mailAccountsAction
{
WOResponse *response;
NSString *s;
s = [self mailAccounts];
response = [self responseWithStatus: 200];
[response setHeader: @"text/plain; charset=utf-8"
forKey: @"content-type"];
[response appendContentString: s];
return response;
}
- (NSString *) userNames
{
NSArray *accounts, *userNames;