This commit is contained in:
Yang Li
2026-01-29 21:01:01 -05:00
parent 98d86c0f70
commit c1991211aa
87 changed files with 10387 additions and 5074 deletions

View File

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