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({
|
||||
openAPI: {
|
||||
description: 'Get the location of the user',
|
||||
security: openAPISecurity,
|
||||
security: securitySchemes,
|
||||
},
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
defineRouteMeta({
|
||||
openAPI: {
|
||||
description: 'Verify the site token',
|
||||
security: openAPISecurity,
|
||||
security: securitySchemes,
|
||||
responses: {
|
||||
200: {
|
||||
description: 'The site token is valid',
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
export const openAPISecurity = [{
|
||||
export const securitySchemes = [{
|
||||
type: 'http',
|
||||
scheme: 'bearer',
|
||||
description: 'The site\'s token',
|
||||
|
|
|
|||
Loading…
Reference in a new issue