Skip to content

Commit 4446c59

Browse files
committed
feat: add global header for language
1 parent 277b7e4 commit 4446c59

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/main.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,16 @@ async function bootstrap() {
4343
.setTitle('Recomend API')
4444
.setDescription('The API documentation for the Recomend application')
4545
.setVersion('1.0')
46+
.addGlobalParameters({
47+
in: 'header',
48+
name: 'language',
49+
description: 'The language for the response. Defaults to "en-US".',
50+
required: false,
51+
schema: {
52+
type: 'string',
53+
default: 'en-US',
54+
},
55+
})
4656
.addBearerAuth(
4757
{
4858
type: 'http',

0 commit comments

Comments
 (0)