add /me endpoint

This commit is contained in:
StarAppeal
2024-12-07 20:10:23 +01:00
parent 18fb3e0ab2
commit fd9a0b257e
+3 -6
View File
@@ -13,13 +13,10 @@ const port = process.env.PORT || 3000;
const server = app.listen(port, () => {
console.log(`Server is running on port ${port}`);
});
app.use(cors({
origin: process.env.FRONTEND_URL,
}));
if (process.env.NODE_ENV === "development") {
console.log("development");
app.use(cors({
origin: 'http://localhost:8081', // Erlaube Anfragen von http://localhost:8081
}));
}
app.use(express.json({limit: "15mb"}));