Chapter 6: code samples

This commit is contained in:
Beth Griggs
2020-05-30 19:33:25 +01:00
parent 4f825bdac3
commit b43bf2c378
398 changed files with 6049 additions and 53643 deletions
@@ -0,0 +1,19 @@
const express = require("express");
const router = express.Router();
router.get("/", (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;