2020-10-13 01:31:57 +00:00
|
|
|
const index = {
|
|
|
|
|
|
|
|
prefix: '/api/v1/session',
|
|
|
|
|
2020-11-11 18:23:31 +00:00
|
|
|
middleware: [],
|
2020-10-13 01:31:57 +00:00
|
|
|
|
|
|
|
get: {
|
2020-11-11 18:23:31 +00:00
|
|
|
'/': [
|
|
|
|
['middleware::auth:ApiRoute', { allow_public: true }],
|
|
|
|
'controller::api:v1:Session.get_session',
|
|
|
|
],
|
|
|
|
|
|
|
|
'/device-token': [
|
|
|
|
'middleware::auth:ApiRoute',
|
|
|
|
'controller::api:v1:Session.get_device_token',
|
|
|
|
],
|
2020-10-13 01:31:57 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
post: {
|
2020-11-11 18:23:31 +00:00
|
|
|
'/': [
|
|
|
|
['middleware::auth:ApiRoute', { allow_public: true }],
|
|
|
|
'controller::api:v1:Session.save_session',
|
|
|
|
],
|
2020-10-13 01:31:57 +00:00
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = exports = index
|