From bcf3f25cbfa7669eee94481dc847243108f08106 Mon Sep 17 00:00:00 2001 From: JunIshino Date: Fri, 6 May 2022 01:32:59 +0900 Subject: [PATCH 1/2] add query parser setting --- .../templates/server/@server=express/service/@orm=prisma/app.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/server/templates/server/@server=express/service/@orm=prisma/app.ts b/server/templates/server/@server=express/service/@orm=prisma/app.ts index fb931762..734814c9 100644 --- a/server/templates/server/@server=express/service/@orm=prisma/app.ts +++ b/server/templates/server/@server=express/service/@orm=prisma/app.ts @@ -9,6 +9,7 @@ import { export const init = () => { const app = express() + app.set('query parser', 'single') app.use(helmet()) app.use(cors()) server(app, {basePath: API_BASE_PATH}) From 4ba529cd71b96454262f38fc2e1b975187049142 Mon Sep 17 00:00:00 2001 From: JunIshino Date: Fri, 6 May 2022 02:17:52 +0900 Subject: [PATCH 2/2] fix typo --- .../templates/server/@server=express/service/@orm=prisma/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/templates/server/@server=express/service/@orm=prisma/app.ts b/server/templates/server/@server=express/service/@orm=prisma/app.ts index 734814c9..4e6e7457 100644 --- a/server/templates/server/@server=express/service/@orm=prisma/app.ts +++ b/server/templates/server/@server=express/service/@orm=prisma/app.ts @@ -9,7 +9,7 @@ import { export const init = () => { const app = express() - app.set('query parser', 'single') + app.set('query parser', 'simple') app.use(helmet()) app.use(cors()) server(app, {basePath: API_BASE_PATH})