Task #28 - Update variables to standard and created export controller
This commit is contained in:
parent
7f832c0d92
commit
68b20a5cf4
@ -24,8 +24,8 @@ class Home extends Controller {
|
||||
return res.page('welcome', {user: req.user})
|
||||
}
|
||||
async get_login(req, res){
|
||||
const app_name = this.configs.get('app.name')
|
||||
return res.page('login', {app_name})
|
||||
const AppName = this.configs.get('app.name')
|
||||
return res.page('login', {AppName})
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -18,8 +18,8 @@ class Example extends Model {
|
||||
*/
|
||||
static get schema() {
|
||||
return {
|
||||
name: String,
|
||||
create_date: {type: Date, default: () => new Date},
|
||||
Name: String,
|
||||
CreateDate: {type: Date, default: () => new Date},
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -46,6 +46,7 @@ const index = {
|
||||
// your own route protected by 'middleware::auth:UserOnly'
|
||||
'/dash': [ 'controller::Home.welcome' ],
|
||||
'/login': [ 'middleware::auth:GuestOnly', 'controller::Home.get_login' ],
|
||||
'/test-export' : ['controller::Export.json_export' ],
|
||||
},
|
||||
|
||||
/*
|
||||
|
@ -61,7 +61,7 @@ html
|
||||
body
|
||||
.container#intro
|
||||
h1 Hi, Welcome to
|
||||
span#name #{app_name}.
|
||||
span#name #{AppName}.
|
||||
h2 Choose your login method.
|
||||
|
||||
.container#login
|
||||
|
Loading…
Reference in New Issue
Block a user