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
|
||||
@@ -44,7 +44,9 @@ const index = {
|
||||
|
||||
// Placeholder for auth dashboard. You'd replace this with
|
||||
// your own route protected by 'middleware::auth:UserOnly'
|
||||
'/dash': [ 'controller::Home.welcome' ],
|
||||
'/dash': [ 'middleware::auth:UserOnly', 'controller::Home.welcome' ],
|
||||
|
||||
'/tmpl': [ 'controller::Home.tmpl' ],
|
||||
},
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user