You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
747 B
27 lines
747 B
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',
|
|
],
|
|
'/login/:key': [
|
|
'middleware::auth:UserOnly',
|
|
'middleware::auth:KeyAction',
|
|
'controller::auth:KeyAction.handle',
|
|
],
|
|
},
|
|
post: {
|
|
'/:key': [
|
|
'middleware::auth:KeyAction',
|
|
'controller::auth:KeyAction.handle',
|
|
],
|
|
'/login/:key': [
|
|
'middleware::auth:UserOnly',
|
|
'middleware::auth:KeyAction',
|
|
'controller::auth:KeyAction.handle',
|
|
],
|
|
},
|
|
}
|