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

@@ -0,0 +1,6 @@
---
"create-better-t-stack": patch
---
Add express.json() middleware to the Express backend template.
Rename the TanStack Start frontend package to "web".

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",

View File

@@ -1,5 +1,5 @@
{
"name": "tanstack-start",
"name": "web",
"private": true,
"type": "module",
"scripts": {