login time
This commit is contained in:
+2
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user