feat: update security scheme references in OpenAPI metadata

This commit is contained in:
ccbikai 2025-05-21 20:34:02 +08:00
parent 7ddbbbbca4
commit e933a6cfd5
3 changed files with 3 additions and 3 deletions

View file

@ -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,
}, },
}) })

View file

@ -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',

View file

@ -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',