login time

This commit is contained in:
Sone
2025-11-05 20:11:59 +01:00
parent deb622b796
commit af4d079181
12 changed files with 1904 additions and 273 deletions
+2 -1
View File
@@ -12,12 +12,13 @@ const port = process.env.PORT || 5000;
app.use(
cors({
origin: true,
methods: ["GET", "POST", "PUT", "DELETE"],
methods: ["GET", "POST", "PUT", "DELETE", "OPTIONS"],
allowedHeaders: ["Content-Type", "Authorization"],
credentials: true,
})
);
app.use(express.json());
app.use("/api/auth", authRoutes);