backend/app/routing/routers/api/v1/session.routes.js
garrettmills 9df5f2d5f4
All checks were successful
continuous-integration/drone/push Build is passing
Split API into multiple files & setup public user permissions
2020-11-11 12:23:31 -06:00

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