feat: update security scheme references in OpenAPI metadata
This commit is contained in:
parent
7ddbbbbca4
commit
e933a6cfd5
3 changed files with 3 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
defineRouteMeta({
|
defineRouteMeta({
|
||||||
openAPI: {
|
openAPI: {
|
||||||
description: 'Get the location of the user',
|
description: 'Get the location of the user',
|
||||||
security: openAPISecurity,
|
security: securitySchemes,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
defineRouteMeta({
|
defineRouteMeta({
|
||||||
openAPI: {
|
openAPI: {
|
||||||
description: 'Verify the site token',
|
description: 'Verify the site token',
|
||||||
security: openAPISecurity,
|
security: securitySchemes,
|
||||||
responses: {
|
responses: {
|
||||||
200: {
|
200: {
|
||||||
description: 'The site token is valid',
|
description: 'The site token is valid',
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
export const openAPISecurity = [{
|
export const securitySchemes = [{
|
||||||
type: 'http',
|
type: 'http',
|
||||||
scheme: 'bearer',
|
scheme: 'bearer',
|
||||||
description: 'The site\'s token',
|
description: 'The site\'s token',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue