20 lines
443 B
JavaScript
20 lines
443 B
JavaScript
const express = require("express");
|
|
const router = express.Router();
|
|
const path = require("path");
|
|
|
|
// home
|
|
router.get("/", (req, res) => {
|
|
res.sendFile(path.join(__dirname + "/index.html"));
|
|
});
|
|
|
|
// about
|
|
router.get("/about", (req, res) => {
|
|
res.sendFile(path.join(__dirname + "/about.html"));
|
|
});
|
|
|
|
// home
|
|
router.get("/contact-me", (req, res) => {
|
|
res.sendFile(path.join(__dirname + "/contact-me.html"));
|
|
});
|
|
|
|
module.exports = router;
|