Skip to content

Commit

Permalink
build router and create home router
Browse files Browse the repository at this point in the history
  • Loading branch information
ismail2009 committed Jan 15, 2018
1 parent e9fa13b commit 7010b8e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/controllers/error.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

3 changes: 3 additions & 0 deletions src/controllers/home.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
exports.get = (req, res) => {
res.render('home');
};
11 changes: 11 additions & 0 deletions src/controllers/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const express = require('express');

const router = express.Router();
const home = require('./home');
// const about = require('about');
// const contact = require('contact');
// const levels = require('levels');
// const game = require('game');

router.get('/', home.get);
module.exports = router;

0 comments on commit 7010b8e

Please sign in to comment.