aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/session/token-api.c
diff options
context:
space:
mode:
authorFulup Ar Foll <fulup@iot.bzh>2015-12-16 15:38:27 +0100
committerFulup Ar Foll <fulup@iot.bzh>2015-12-16 15:38:27 +0100
commitf4df9160115470439d1820409126694d138cd7be (patch)
treecafdb70f5a01aeb19cc7c4feb7f665a480ccfb85 /plugins/session/token-api.c
parentdcff5c07efce171084d19e9ddea6030f15b1a55b (diff)
En court
Diffstat (limited to 'plugins/session/token-api.c')
-rw-r--r--plugins/session/token-api.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/session/token-api.c b/plugins/session/token-api.c
index 9e1c7660..75883d3e 100644
--- a/plugins/session/token-api.c
+++ b/plugins/session/token-api.c
@@ -173,10 +173,10 @@ STATIC void clientContextFree(AFB_clientCtx *client) {
STATIC AFB_restapi pluginApis[]= {
{"ping" , AFB_SESSION_NONE , (AFB_apiCB)apiPingTest ,"Ping Rest Test Service"},
- {"token-create" , AFB_SESSION_CREATE, (AFB_apiCB)clientContextCreate ,"Request Client Context Creation"},
- {"token-refresh" , AFB_SESSION_RENEW , (AFB_apiCB)clientContextRefresh,"Refresh Client Context Token"},
- {"token-check" , AFB_SESSION_CHECK , (AFB_apiCB)clientContextCheck ,"Check Client Context Token"},
- {"token-reset" , AFB_SESSION_CLOSE , (AFB_apiCB)clientContextReset ,"Close Client Context and Free resources"},
+ {"create" , AFB_SESSION_CREATE, (AFB_apiCB)clientContextCreate ,"Request Client Context Creation"},
+ {"refresh" , AFB_SESSION_RENEW , (AFB_apiCB)clientContextRefresh,"Refresh Client Context Token"},
+ {"check" , AFB_SESSION_CHECK , (AFB_apiCB)clientContextCheck ,"Check Client Context Token"},
+ {"reset" , AFB_SESSION_CLOSE , (AFB_apiCB)clientContextReset ,"Close Client Context and Free resources"},
{"file-upload" , AFB_SESSION_NONE , (AFB_apiCB)ProcessPostForm ,"Demo for file upload"},
{NULL}
};
@@ -185,7 +185,7 @@ PUBLIC AFB_plugin *afsvRegister () {
AFB_plugin *plugin = malloc (sizeof (AFB_plugin));
plugin->type = AFB_PLUGIN_JSON;
plugin->info = "Application Framework Binder Service";
- plugin->prefix= "afbs"; // url base
+ plugin->prefix= "token"; // url base
plugin->apis = pluginApis;
plugin->handle= (void*) "What ever you want";
plugin->freeCtxCB= (void*) clientContextFree;