first commit

This commit is contained in:
Julian Appel 2026-04-30 18:22:10 +02:00
commit c3e98af5b6
36 changed files with 4779 additions and 0 deletions

View file

@ -0,0 +1,12 @@
import type { NextFunction, Request, Response } from "express";
export function errorMiddleware(
error: unknown,
_req: Request,
res: Response,
_next: NextFunction
) {
console.error(error);
res.status(500).json({ error: "Internal Server Error" });
}