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.

29 lines
652 B

module.exports = exports = {
prefix: '/api/v1/auth',
middleware: [],
get: {
'/user-info': [
'middleware::auth:GuestOnly',
'controller::api:v1:Auth.get_user_info',
],
},
post: {
'/attempt': [
'middleware::auth:GuestOnly',
'controller::api:v1:Auth.attempt_authentication',
],
'/end-session': [
'middleware::auth:UserOnly',
'controller::api:v1:Auth.end_session',
],
'/register': [
'middleware::auth:GuestOnly',
'controller::api:v1:Auth.attempt_registration',
],
},
}