refactor: es6 all the things!

This commit is contained in:
Khaled Garbaya
2017-09-20 12:02:27 +02:00
committed by Benedikt Rötsch
parent d1d580f288
commit dc3e8628f3
8 changed files with 94 additions and 48 deletions

9
routes/about.js Normal file
View File

@@ -0,0 +1,9 @@
const express = require('express')
const router = express.Router()
/* GET home page. */
router.get('/', function (req, res, next) {
res.render('about', { title: 'About' })
})
module.exports = router