garrettmills
9df5f2d5f4
All checks were successful
continuous-integration/drone/push Build is passing
28 lines
578 B
JavaScript
28 lines
578 B
JavaScript
const index = {
|
|
|
|
prefix: '/api/v1/session',
|
|
|
|
middleware: [],
|
|
|
|
get: {
|
|
'/': [
|
|
['middleware::auth:ApiRoute', { allow_public: true }],
|
|
'controller::api:v1:Session.get_session',
|
|
],
|
|
|
|
'/device-token': [
|
|
'middleware::auth:ApiRoute',
|
|
'controller::api:v1:Session.get_device_token',
|
|
],
|
|
},
|
|
|
|
post: {
|
|
'/': [
|
|
['middleware::auth:ApiRoute', { allow_public: true }],
|
|
'controller::api:v1:Session.save_session',
|
|
],
|
|
},
|
|
}
|
|
|
|
module.exports = exports = index
|