Chapter 6: initial samples

This commit is contained in:
Beth Griggs
2020-05-22 00:21:50 +01:00
parent ed914ab3f0
commit 45e2b0cb96
340 changed files with 54213 additions and 0 deletions
+19
View File
@@ -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;