Rework login page to be AJAX/Vue.js based

This commit is contained in:
garrettmills
2020-04-22 09:19:25 -05:00
parent 175c335542
commit d68d5141c8
30 changed files with 12965 additions and 79 deletions

View 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

View File

@@ -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' ],
},
/*