diff --git a/src/app.module.ts b/src/app.module.ts index 298c4547..42e51ca5 100644 --- a/src/app.module.ts +++ b/src/app.module.ts @@ -47,11 +47,6 @@ export const setupApp = () => { }, }, }, - security: [ - { - tokenAuth: [], - }, - ], }, exclude: ['/'], swaggerOptions: { diff --git a/src/articles/articles.plugin.ts b/src/articles/articles.plugin.ts index 832bd165..e783dd29 100644 --- a/src/articles/articles.plugin.ts +++ b/src/articles/articles.plugin.ts @@ -55,6 +55,11 @@ export const articlesPlugin = new Elysia().use(setupArticles).group( response: ReturnedArticleResponseSchema, detail: { summary: 'Create Article', + security: [ + { + tokenAuth: [], + }, + ], }, }, ) @@ -73,7 +78,12 @@ export const articlesPlugin = new Elysia().use(setupArticles).group( query: ArticleFeedQuerySchema, response: ReturnedArticleListSchema, detail: { - summary: 'Article Feed', + summary: 'Artifle Feed', + security: [ + { + tokenAuth: [], + }, + ], }, }, ) @@ -107,6 +117,11 @@ export const articlesPlugin = new Elysia().use(setupArticles).group( response: ReturnedArticleResponseSchema, detail: { summary: 'Update Article', + security: [ + { + tokenAuth: [], + }, + ], }, }, ) @@ -122,6 +137,11 @@ export const articlesPlugin = new Elysia().use(setupArticles).group( response: DeleteArticleResponse, detail: { summary: 'Delete Article', + security: [ + { + tokenAuth: [], + }, + ], }, }, ) diff --git a/src/profiles/profiles.plugin.ts b/src/profiles/profiles.plugin.ts index d08c128f..43231393 100644 --- a/src/profiles/profiles.plugin.ts +++ b/src/profiles/profiles.plugin.ts @@ -23,6 +23,11 @@ export const profilesPlugin = new Elysia().use(setupProfiles).group( response: ReturnedProfileSchema, detail: { summary: 'Profile', + security: [ + { + tokenAuth: [], + }, + ], }, }, ) @@ -38,6 +43,11 @@ export const profilesPlugin = new Elysia().use(setupProfiles).group( response: ReturnedProfileSchema, detail: { summary: 'Follow Profile', + security: [ + { + tokenAuth: [], + }, + ], }, }, ) @@ -54,6 +64,11 @@ export const profilesPlugin = new Elysia().use(setupProfiles).group( response: ReturnedProfileSchema, detail: { summary: 'Unfollow Profile', + security: [ + { + tokenAuth: [], + }, + ], }, }, ), diff --git a/src/users/users.plugin.ts b/src/users/users.plugin.ts index 77d4453d..f0a296d1 100644 --- a/src/users/users.plugin.ts +++ b/src/users/users.plugin.ts @@ -55,6 +55,11 @@ export const usersPlugin = new Elysia() response: ReturnedUserSchema, detail: { summary: 'Current User', + security: [ + { + tokenAuth: [], + }, + ], }, }, ) @@ -71,6 +76,11 @@ export const usersPlugin = new Elysia() response: ReturnedUserSchema, detail: { summary: 'Update User', + security: [ + { + tokenAuth: [], + }, + ], }, }, ),