create-frourio-app icon indicating copy to clipboard operation
create-frourio-app copied to clipboard

express adds 'query parser' to 'simple'

Open IshinoJun opened this issue 2 years ago • 0 comments

Ref.https://github.com/frouriojs/create-frourio-app/pull/355 Ref.https://github.com/aspida/aspida/pull/752

Description

express はデフォルトで下記 の key から [] を取り外して queryを生成してしまいます

?ids[]=1&ids[]=2

aspidaは取り外しされることは期待していないので、query parsersimpleに設定します https://expressjs.com/en/api.html#app.settings.table

Expected

{ ids: [ '1', '2' ] }

Actual

{ ids[]: [ '1', '2' ] }

IshinoJun avatar May 05 '22 17:05 IshinoJun