Skip to content

Commit 8978c03

Browse files
pktikkaniclaude
andcommitted
Fix Express 5 wildcard route syntax
Express 5 requires named wildcard parameters. Changed /api/trpc/* to /api/trpc/*path 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 7d218da commit 8978c03

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ app.all('/api/auth-debug', async (req: Request, res: Response) => {
8181
// Microsoft OAuth routes
8282
app.use('/api/microsoft', microsoftRouter);
8383

84-
// tRPC handler
85-
app.all('/api/trpc/*', async (req: Request, res: Response) => {
84+
// tRPC handler (Express 5 requires named wildcard parameter)
85+
app.all('/api/trpc/*path', async (req: Request, res: Response) => {
8686
try {
8787
// Build the full URL
8888
const protocol = req.headers['x-forwarded-proto'] || 'http';

0 commit comments

Comments
 (0)