fix: API works now and a fixt port was set

This commit is contained in:
2025-09-10 20:22:31 +02:00
parent 7f238ce1a2
commit cf072cee0c
2 changed files with 13 additions and 6 deletions

View File

@@ -12,11 +12,13 @@ const app = express();
db.initDB();
app.use(express.static(path.join(__dirname, "public"), {
dotfiles: "ignore"
}));
app.use(express.json())
app.use(express.urlencoded({ extended: true }))
//app.use(express.static(path.join(__dirname, "public"), {
// dotfiles: "ignore"
//}));
app.use("/api", apiRouter);
const server = app.listen(0, () => {
const server = app.listen(5555, () => {
console.log(`Server running on http://localhost:${server.address().port}`);
});