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.
22 lines
580 B
22 lines
580 B
const auth_routes = {
|
|
prefix: '/api/v1/auth',
|
|
|
|
middleware: [
|
|
|
|
],
|
|
|
|
get: {
|
|
|
|
},
|
|
|
|
post: {
|
|
'/validate/username': ['controller::api:v1:Auth.validate_username'],
|
|
'/attempt': [ 'controller::api:v1:Auth.attempt' ],
|
|
'/mfa/generate': ['middleware::auth:UserOnly', 'controller::api:v1:Auth.generate_mfa_key'],
|
|
'/mfa/attempt': ['middleware::auth:DMZOnly', 'controller::api:v1:Auth.attempt_mfa'],
|
|
'/mfa/enable': ['middleware::auth:UserOnly', 'controller::api:v1:Auth.enable_mfa'],
|
|
},
|
|
}
|
|
|
|
module.exports = exports = auth_routes
|