init commit

This commit is contained in:
2025-11-07 22:24:40 +01:00
parent a5373286bf
commit 15b8f36d4d
217 changed files with 168229 additions and 0 deletions

12
server/middlewares/tryCatch.ts Executable file
View File

@@ -0,0 +1,12 @@
export default function tryCatch (cb) {
return async (req, res, next) => {
try {
await cb(req, res, next)
// next()
} catch (err) {
console.log(err)
next(err)
}
}
}