Rework login page to be AJAX/Vue.js based
This commit is contained in:
18
app/routing/routers/api/v1/auth.routes.js
Normal file
18
app/routing/routers/api/v1/auth.routes.js
Normal file
@@ -0,0 +1,18 @@
|
||||
const auth_routes = {
|
||||
prefix: '/api/v1/auth',
|
||||
|
||||
middleware: [
|
||||
|
||||
],
|
||||
|
||||
get: {
|
||||
|
||||
},
|
||||
|
||||
post: {
|
||||
'/validate/username': ['controller::api:v1:Auth.validate_username'],
|
||||
'/attempt': [ 'controller::api:v1:Auth.attempt' ],
|
||||
},
|
||||
}
|
||||
|
||||
module.exports = exports = auth_routes
|
||||
Reference in New Issue
Block a user