diff options
author | Fulup Ar Foll <fulup@iot.bzh> | 2016-02-15 15:56:36 +0100 |
---|---|---|
committer | Fulup Ar Foll <fulup@iot.bzh> | 2016-02-15 15:56:36 +0100 |
commit | e6d12f74be543056a439259b61ba40a9d0adcf5c (patch) | |
tree | 06042b26cc2745b749ea1ff99370acaf58e12223 /afb-client/app/Backend | |
parent | fb1353dbc12ae889c17a6aa1572b917f57de0f9d (diff) |
Updated TokenRefresh and AppConfig
Diffstat (limited to 'afb-client/app/Backend')
-rw-r--r-- | afb-client/app/Backend/RestApis/TokenMockApi.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/afb-client/app/Backend/RestApis/TokenMockApi.js b/afb-client/app/Backend/RestApis/TokenMockApi.js index 74b565a..9e6406e 100644 --- a/afb-client/app/Backend/RestApis/TokenMockApi.js +++ b/afb-client/app/Backend/RestApis/TokenMockApi.js @@ -37,7 +37,7 @@ function NewApi(handle, prefix) { scope.connected=false; // Simulate Client Context Session Creation - handle.app.post(prefix +'/create', function (req, res) { + handle.app.get(prefix +'/create', function (req, res) { handle.trace (scope, 1, "%s/create body=%s", prefix, req.body.action); var okResponse= '{ "jtype": "AJB_reply"' + ', "request": { "prefix": "afbs", "api": "create", "uuid": "e4ef5e66-xxxx", "token": "123456789-xxxxx", "status": "processed" }'+ @@ -57,7 +57,7 @@ function NewApi(handle, prefix) { // Simulate Client Context Check - handle.app.post(prefix +'/check', function (req, res) { + handle.app.get(prefix +'/check', function (req, res) { handle.trace (scope, 1, "%s/check query=%s", prefix, req.query.token); var okResponse= '{"jtype":"AJB_reply"'+ ',"request":{"prefix":"afbs","api":"check", "status":"processed"}'+ @@ -73,7 +73,7 @@ function NewApi(handle, prefix) { }); // Simulate Client Context Check - handle.app.post(prefix +'/refresh', function (req, res) { + handle.app.get(prefix +'/refresh', function (req, res) { handle.trace (scope, 1, "%s/refresh query=%s", prefix, req.query.token); var okResponse= '{"jtype":"AJB_reply"'+ ',"request":{"prefix":"afbs","api":"refresh","uuid": "e4ef5e66-xxxx", "token": "123456789-xxxxx","status":"processed"}'+ @@ -89,7 +89,7 @@ function NewApi(handle, prefix) { }); // Simulate Client Context Session Closing - handle.app.post(prefix +'/reset', function (req, res) { + handle.app.get(prefix +'/reset', function (req, res) { handle.trace (scope, 1, "%s/reset query=%s", prefix, req.query.token); var okResponse= '{"jtype":"AJB_reply"'+ ',"request":{"prefix":"afbs","api":"reset","uuid": "e4ef5e66-xxxx","status":"processed"}'+ |