diff --git a/app.js b/app.js index 70c3a48..4fefae5 100644 --- a/app.js +++ b/app.js @@ -1,28 +1,27 @@ -const express = require("express"); +const express = require('express'); const app = express(); const router = express.Router(); const path = __dirname + '/views/'; -const PORT = 8080; -const HOST = '0.0.0.0'; +const port = 8080; router.use(function (req,res,next) { - console.log("/" + req.method); + console.log('/' + req.method); next(); }); -router.get("/",function(req,res){ - res.sendFile(path + "index.html"); +router.get('/',function(req,res){ + res.sendFile(path + 'index.html'); }); -router.get("/sharks",function(req,res){ - res.sendFile(path + "sharks.html"); +router.get('/sharks',function(req,res){ + res.sendFile(path + 'sharks.html'); }); app.use(express.static(path)); -app.use("/", router); +app.use('/', router); -app.listen(8080, function () { +app.listen(port, function () { console.log('Example app listening on port 8080!') })