2020-10-13 01:31:57 +00:00
|
|
|
const index = {
|
|
|
|
|
|
|
|
prefix: '/api/v1/session',
|
|
|
|
|
|
|
|
middleware: [
|
|
|
|
'auth:UserOnly',
|
|
|
|
],
|
|
|
|
|
|
|
|
get: {
|
|
|
|
'/': [ 'controller::api:v1:Session.get_session' ],
|
2020-10-22 04:51:12 +00:00
|
|
|
'/device-token': [ 'controller::api:v1:Session.get_device_token' ],
|
2020-10-13 01:31:57 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
post: {
|
2020-10-20 15:12:25 +00:00
|
|
|
'/': [ 'controller::api:v1:Session.save_session' ],
|
2020-10-13 01:31:57 +00:00
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = exports = index
|