fix front
All checks were successful
Build SMS Gateway / Build image (push) Successful in 16s

This commit is contained in:
2026-02-02 07:31:48 +07:00
parent d71d83a044
commit 6c5c81e033
2 changed files with 4 additions and 4 deletions

View File

@@ -1 +1 @@
0.3.5
0.3.6

View File

@@ -100,9 +100,6 @@ router.get("/balance", (req, res) => {
res.json({ balance: "1000.00" });
});
// Serve static files
router.use(express.static(path.join(__dirname, "public")));
// GET / - serve main page with injected credentials
router.get("/", (req, res) => {
const indexPath = path.join(__dirname, "public", "index.html");
@@ -115,6 +112,9 @@ router.get("/", (req, res) => {
res.send(html);
});
// Serve static files (after / route to prevent index.html from being served directly)
router.use(express.static(path.join(__dirname, "public"), { index: false }));
// Mount router at BASE_PATH
app.use(BASE_PATH, router);