Fix merge conflicts with main

This commit is contained in:
r2xrzh9q2z-lab
2026-02-04 09:21:15 +07:00
51 changed files with 6473 additions and 2727 deletions

View File

@@ -32,6 +32,28 @@ app.set("layout extractStyles", true);
app.use(express.json());
app.use(express.urlencoded({ extended: true }));
app.use(cookieParser());
app.use(
"/assets",
(req, res, next) => {
// Cho phép mọi domain truy cập tài nguyên tĩnh
res.header("Access-Control-Allow-Origin", "*");
res.header("Access-Control-Allow-Methods", "GET");
next();
},
express.static(path.join(__dirname, "assets")),
);
app.use(
"/uploads",
(req, res, next) => {
// Cho phép mọi domain truy cập tài nguyên tĩnh
res.header("Access-Control-Allow-Origin", "*");
res.header("Access-Control-Allow-Methods", "GET");
next();
},
express.static(path.join(__dirname, "public", "uploads")),
);
// Serve other public files
app.use(express.static(path.join(__dirname, "public")));
// Session configuration