diff --git a/app.js b/app.js index b9ae5a0..c6b7e7e 100644 --- a/app.js +++ b/app.js @@ -9,6 +9,7 @@ const loginRouter = require("./routes/login") const logoutRouter = require("./routes/logout") const commandsRouter = require("./routes/commands") const kitchenRouter = require("./routes/kitchen") +const serviceRouter = require("./routes/service") const stocksRouter = require("./routes/stocks") const app = express(); @@ -29,6 +30,7 @@ app.use("/logout", logoutRouter); app.use("/commands", commandsRouter); app.use("/kitchen", kitchenRouter); app.use("/stocks", stocksRouter); +app.use("/service", serviceRouter); // catch 404 and forward to error handler app.use(function(req, res, next) { diff --git a/routes/service.js b/routes/service.js new file mode 100644 index 0000000..466564f --- /dev/null +++ b/routes/service.js @@ -0,0 +1,9 @@ +const express = require("express"); +const router = express.Router(); + +/* GET home page. */ +router.get("/", function(req, res) { + res.render("service", { title: "Kfet - Service" }); +}); + +module.exports = router; diff --git a/views/service.pug b/views/service.pug index ba14728..7c50663 100644 --- a/views/service.pug +++ b/views/service.pug @@ -6,7 +6,7 @@ block content a#gobackpc(onclick="window.close()") li Back to commands - div#main-container.bg-contact2(style="background-image: url(/images/bg-01.jpg)") + div#main-container.bg-contact2(style="background-image: url(/images/bg-01.jpg); height: 93vh;") form#stocks.container(action="#") div#teams div#sandwich