diff --git a/app/controllers/Home.controller.js b/app/controllers/Home.controller.js index fca15cd..9c6e005 100644 --- a/app/controllers/Home.controller.js +++ b/app/controllers/Home.controller.js @@ -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}) } } diff --git a/app/models/Example.model.js b/app/models/Example.model.js index f2f3adc..8d372f5 100644 --- a/app/models/Example.model.js +++ b/app/models/Example.model.js @@ -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}, } } diff --git a/app/routing/routers/index.routes.js b/app/routing/routers/index.routes.js index 1ca5348..c1ea00f 100644 --- a/app/routing/routers/index.routes.js +++ b/app/routing/routers/index.routes.js @@ -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' ], }, /* diff --git a/app/views/login.pug b/app/views/login.pug index c2137d9..24f9268 100644 --- a/app/views/login.pug +++ b/app/views/login.pug @@ -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