Skip to content

Commit

Permalink
update: controller
Browse files Browse the repository at this point in the history
  • Loading branch information
czewail committed Sep 18, 2019
1 parent c801f41 commit 2f8d7c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/app/controller/hello.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@

const {
Controller, Http,
Route, Http, Controller,
} = require('@dazejs/framework');

@Controller()
class Hello {
@Route()
class Hello extends Controller {
@Http.Get()
index() {
return this.ren11der('hello', {
return this.render('hello', {
name: 'Daze.js',
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/config/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ module.exports = {
},

providers: [
// require.resolve('../provider/bootstrap'),
require.resolve('../provider/bootstrap'),
],
};

0 comments on commit 2f8d7c9

Please sign in to comment.