add json middleware in express

This commit is contained in:
Aman Varshney
2025-04-22 15:04:44 +05:30
parent a518484ede
commit 783995072f
3 changed files with 9 additions and 1 deletions

View File

@@ -39,6 +39,8 @@ app.use(
app.all("/api/auth{/*path}", toNodeHandler(auth));
{{/if}}
app.use(express.json())
{{#if (eq api "trpc")}}
app.use(
"/trpc",