mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
add json middleware in express
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "tanstack-start",
|
||||
"name": "web",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user