backend/app/routing/routers/api/v1/session.routes.js
garrettmills b37faa87b3
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
Add device tokens for resuming user sessions
2020-10-21 23:51:12 -05:00

20 lines
369 B
JavaScript

const index = {
prefix: '/api/v1/session',
middleware: [
'auth:UserOnly',
],
get: {
'/': [ 'controller::api:v1:Session.get_session' ],
'/device-token': [ 'controller::api:v1:Session.get_device_token' ],
},
post: {
'/': [ 'controller::api:v1:Session.save_session' ],
},
}
module.exports = exports = index