mirror of
https://github.com/detleph/server.git
synced 2026-09-05 23:44:18 +02:00
Added tests for the event endpoints
Also installed chai, chai http & mocha
This commit is contained in:
@@ -13,6 +13,7 @@ async function main() {
|
||||
app.use(express.urlencoded({ extended: true }));
|
||||
app.use(express.json());
|
||||
|
||||
// All API endpoints are behind /api/...
|
||||
app.use("/api/events", eventRouter);
|
||||
|
||||
app.listen(process.env.PORT, () => {
|
||||
@@ -27,3 +28,5 @@ main()
|
||||
.finally(async () => {
|
||||
await prisma.$disconnect();
|
||||
});
|
||||
|
||||
export default app;
|
||||
|
||||
Reference in New Issue
Block a user