-
Notifications
You must be signed in to change notification settings - Fork 1
/
app.js
46 lines (25 loc) · 1.53 KB
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
const express = require("express");
const config = require("config");
const PORT = config.get("port");
const app = express();
process.env.TZ = "Europe/Kiev";
app.use(express.json({ extended: "true" }));
app.use("/api/auth", require("./routes/auth.routes"));
app.use("/api/referenceBook/", require("./routes/ramps.routes"));
app.use("/api/referenceBook/", require("./routes/areas.routes"));
app.use("/api/referenceBook/", require("./routes/warehouses.routes"));
app.use("/api/referenceBook/", require("./routes/transportTypes.routes"));
app.use("/api/referenceBook/", require("./routes/suppliers.routes"));
app.use("/api/referenceBook/", require("./routes/receivers.routes"));
app.use("/api/referenceBook/", require("./routes/cargoTypes.routes"));
app.use("/api/referenceBook/", require("./routes/checkpoints.routes"));
app.use("/api/referenceBook/", require("./routes/extrabuildings.routes"));
app.use("/api/referenceBook/", require("./routes/incomingTypes.routes"));
app.use("/api/referenceBook/", require("./routes/parckings.routes"));
app.use("/api/referenceBook/", require("./routes/carriers.routes"));
app.use("/api/referenceBook/", require("./routes/warehouseSchedules.routes"));
app.use("/api/referenceBook/", require("./routes/rampSchedules.routes"));
app.use("/api/timeSlots/", require("./routes/timeSlots.routes"));
app.use("/api/workPlace/", require("./routes/unrelatedDocuments.routes"));
app.use("/api/workPlace/", require("./routes/relatedDocuments.routes"));
app.listen(PORT, () => console.log(`app startred on port ${PORT}`));