Add device tokens for resuming user sessions
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing

This commit is contained in:
2020-10-21 23:51:12 -05:00
parent b0b62cc50d
commit b37faa87b3
5 changed files with 79 additions and 2 deletions

View File

@@ -8,6 +8,7 @@ const index = {
get: {
'/': [ 'controller::api:v1:Session.get_session' ],
'/device-token': [ 'controller::api:v1:Session.get_device_token' ],
},
post: {

View File

@@ -60,7 +60,11 @@ const index = {
* an array of canonical references to controller methods
* or middleware that are applied in order.
*/
post: {}
post: {
'/api/v1/session/resume/:token': [
'middleware::auth:GuestOnly', 'controller::api:v1:Session.resume',
],
}
};
module.exports = exports = index;