Skip to content

Commit

Permalink
chore(lite): remove @security in lite-template
Browse files Browse the repository at this point in the history
  • Loading branch information
zeffon committed May 16, 2023
1 parent 34f482c commit a635fef
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/create-koa-web/template-lite/src/app/api/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
prefix,
query,
request,
security,
summary,
tags,
} from 'koa-swagger-decorator'
Expand Down Expand Up @@ -79,17 +78,10 @@ export default class UserController {
global.UnifyResponse.updateSuccess({ code: global.SUCCESS_CODE })
}

/**
* @security([{ api_key: [] }])
* In Swagger UI, it will be displayed as a lock icon that you can click to view and configure the required API key or OAuth2 token.
* If your API does not require security measures, `@security` can be omitted.
* @param ctx
*/
@request('delete', '/{id}')
@summary('delete user')
@description('example: /user/1')
@tag
@security([{ api_key: [] }])
@path({
id: { type: 'number', required: true, default: null, description: 'id' },
})
Expand Down

0 comments on commit a635fef

Please sign in to comment.