Add service to routes
This commit is contained in:
parent
07e3e9dbbf
commit
78da882f85
3 changed files with 12 additions and 1 deletions
2
app.js
2
app.js
|
@ -9,6 +9,7 @@ const loginRouter = require("./routes/login")
|
||||||
const logoutRouter = require("./routes/logout")
|
const logoutRouter = require("./routes/logout")
|
||||||
const commandsRouter = require("./routes/commands")
|
const commandsRouter = require("./routes/commands")
|
||||||
const kitchenRouter = require("./routes/kitchen")
|
const kitchenRouter = require("./routes/kitchen")
|
||||||
|
const serviceRouter = require("./routes/service")
|
||||||
const stocksRouter = require("./routes/stocks")
|
const stocksRouter = require("./routes/stocks")
|
||||||
|
|
||||||
const app = express();
|
const app = express();
|
||||||
|
@ -29,6 +30,7 @@ app.use("/logout", logoutRouter);
|
||||||
app.use("/commands", commandsRouter);
|
app.use("/commands", commandsRouter);
|
||||||
app.use("/kitchen", kitchenRouter);
|
app.use("/kitchen", kitchenRouter);
|
||||||
app.use("/stocks", stocksRouter);
|
app.use("/stocks", stocksRouter);
|
||||||
|
app.use("/service", serviceRouter);
|
||||||
|
|
||||||
// catch 404 and forward to error handler
|
// catch 404 and forward to error handler
|
||||||
app.use(function(req, res, next) {
|
app.use(function(req, res, next) {
|
||||||
|
|
9
routes/service.js
Normal file
9
routes/service.js
Normal 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;
|
|
@ -6,7 +6,7 @@ block content
|
||||||
a#gobackpc(onclick="window.close()")
|
a#gobackpc(onclick="window.close()")
|
||||||
li Back to commands
|
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="#")
|
form#stocks.container(action="#")
|
||||||
div#teams
|
div#teams
|
||||||
div#sandwich
|
div#sandwich
|
||||||
|
|
Reference in a new issue