Fix
This commit is contained in:
21
server.js
21
server.js
@@ -12,10 +12,10 @@ const employeeUploadBasePath = '/www/wwwroot/upload/';
|
||||
app.use('/files', express.static(employeeUploadBasePath));
|
||||
app.use(cors(corsOptions));
|
||||
// parse requests of content-type - application/json
|
||||
app.use(bodyParser.json());
|
||||
app.use(bodyParser.json({ limit: '50mb' }));
|
||||
app.use(express.static(path));
|
||||
// parse requests of content-type - application/x-www-form-urlencoded
|
||||
app.use(bodyParser.urlencoded({ extended: true }));
|
||||
app.use(bodyParser.urlencoded({ limit: '50mb', extended: true }));
|
||||
const db = require('./app/models');
|
||||
db.mongoose
|
||||
.connect(db.url, {
|
||||
@@ -72,6 +72,18 @@ app.get('/trans-routes/route-signature', function (req,res) {
|
||||
app.get('/trans-routes/templates/edit/:id', function (req,res) {
|
||||
res.sendFile(path + "index.html");
|
||||
});
|
||||
app.get('/trans-routes/daily-templates/list', function (req,res) {
|
||||
res.sendFile(path + "index.html");
|
||||
});
|
||||
app.get('/trans-routes/daily-templates/view/:id', function (req,res) {
|
||||
res.sendFile(path + "index.html");
|
||||
});
|
||||
app.get('/trans-routes/daily-templates/:id/view-route/:routeId', function (req,res) {
|
||||
res.sendFile(path + "index.html");
|
||||
});
|
||||
app.get('/trans-routes/daily-templates/:id/update-route/:routeId', function (req,res) {
|
||||
res.sendFile(path + "index.html");
|
||||
});
|
||||
app.get('/employees', function (req,res) {
|
||||
res.sendFile(path + "index.html");
|
||||
});
|
||||
@@ -201,6 +213,9 @@ app.get('/seating', function (req,res) {
|
||||
app.get('/center-calendar', function (req,res) {
|
||||
res.sendFile(path + "index.html");
|
||||
});
|
||||
app.get('/meal-status', function (req,res) {
|
||||
res.sendFile(path + "index.html");
|
||||
});
|
||||
app.get('/info-screen', function (req,res) {
|
||||
res.sendFile(path + "index.html");
|
||||
});
|
||||
@@ -233,6 +248,8 @@ require("./app/routes/seating.routes")(app);
|
||||
require("./app/routes/label.routes")(app);
|
||||
require("./app/routes/attendance-note.routes")(app);
|
||||
require("./app/routes/carousel.routes")(app);
|
||||
require("./app/routes/fingerprint-attendance.routes")(app);
|
||||
require("./app/routes/daily-routes-template.routes")(app);
|
||||
|
||||
require("./app/scheduler/reminderScheduler");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user