2020-02-08 03:08:24 +00:00
|
|
|
module.exports = exports = {
|
|
|
|
prefix: '/auth/action', // This is assumed by flitter-auth. Don't change it.
|
|
|
|
middleware: [],
|
|
|
|
get: {
|
|
|
|
'/:key': [
|
|
|
|
'middleware::auth:KeyAction',
|
|
|
|
'controller::auth:KeyAction.handle',
|
|
|
|
],
|
2020-02-14 06:11:16 +00:00
|
|
|
'/login/:key': [
|
|
|
|
'middleware::auth:UserOnly',
|
|
|
|
'middleware::auth:KeyAction',
|
|
|
|
'controller::auth:KeyAction.handle',
|
|
|
|
],
|
2020-02-08 03:08:24 +00:00
|
|
|
},
|
|
|
|
post: {
|
|
|
|
'/:key': [
|
|
|
|
'middleware::auth:KeyAction',
|
|
|
|
'controller::auth:KeyAction.handle',
|
|
|
|
],
|
2020-02-14 06:11:16 +00:00
|
|
|
'/login/:key': [
|
|
|
|
'middleware::auth:UserOnly',
|
|
|
|
'middleware::auth:KeyAction',
|
|
|
|
'controller::auth:KeyAction.handle',
|
|
|
|
],
|
2020-02-08 03:08:24 +00:00
|
|
|
},
|
|
|
|
}
|