2017-07-31 11:33:31 +05:30

23 lines
411 B
JavaScript

'use strict'
const {Router} = require('express')
const router = Router()
router.get('/', function (req, res) {
const title = 'Express'
res.send(`
<html>
<head>
<title> ${title} </title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1> ${title} </h1>
<p> Welcome to ${title} </p>
</body>
</html>
`)
})
module.exports = router