Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@ export const setupApp = () => {
},
},
},
security: [
{
tokenAuth: [],
},
],
},
exclude: ['/'],
swaggerOptions: {
Expand Down
22 changes: 21 additions & 1 deletion src/articles/articles.plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ export const articlesPlugin = new Elysia().use(setupArticles).group(
response: ReturnedArticleResponseSchema,
detail: {
summary: 'Create Article',
security: [
{
tokenAuth: [],
},
],
},
},
)
Expand All @@ -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: [],
},
],
},
},
)
Expand Down Expand Up @@ -107,6 +117,11 @@ export const articlesPlugin = new Elysia().use(setupArticles).group(
response: ReturnedArticleResponseSchema,
detail: {
summary: 'Update Article',
security: [
{
tokenAuth: [],
},
],
},
},
)
Expand All @@ -122,6 +137,11 @@ export const articlesPlugin = new Elysia().use(setupArticles).group(
response: DeleteArticleResponse,
detail: {
summary: 'Delete Article',
security: [
{
tokenAuth: [],
},
],
},
},
)
Expand Down
15 changes: 15 additions & 0 deletions src/profiles/profiles.plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ export const profilesPlugin = new Elysia().use(setupProfiles).group(
response: ReturnedProfileSchema,
detail: {
summary: 'Profile',
security: [
{
tokenAuth: [],
},
],
},
},
)
Expand All @@ -38,6 +43,11 @@ export const profilesPlugin = new Elysia().use(setupProfiles).group(
response: ReturnedProfileSchema,
detail: {
summary: 'Follow Profile',
security: [
{
tokenAuth: [],
},
],
},
},
)
Expand All @@ -54,6 +64,11 @@ export const profilesPlugin = new Elysia().use(setupProfiles).group(
response: ReturnedProfileSchema,
detail: {
summary: 'Unfollow Profile',
security: [
{
tokenAuth: [],
},
],
},
},
),
Expand Down
10 changes: 10 additions & 0 deletions src/users/users.plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ export const usersPlugin = new Elysia()
response: ReturnedUserSchema,
detail: {
summary: 'Current User',
security: [
{
tokenAuth: [],
},
],
},
},
)
Expand All @@ -71,6 +76,11 @@ export const usersPlugin = new Elysia()
response: ReturnedUserSchema,
detail: {
summary: 'Update User',
security: [
{
tokenAuth: [],
},
],
},
},
),
Expand Down
Loading