Archived
1
0
Fork 0

Add service to routes

This commit is contained in:
Ethanell 2020-05-30 15:44:16 +02:00
parent 07e3e9dbbf
commit 78da882f85
3 changed files with 12 additions and 1 deletions

2
app.js
View file

@ -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) {

9
routes/service.js Normal file
View file

@ -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;

View file

@ -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