fix: middleware auth
This commit is contained in:
@@ -20,7 +20,7 @@ export const router = new Elysia({
|
||||
}, {
|
||||
query: listTopics,
|
||||
response: listTopicResponseSchema,
|
||||
verifyBasicAuth: false,
|
||||
verifyBasicAuth: true,
|
||||
})
|
||||
.get('/commands', async ({ query, set }) => {
|
||||
const result = await QueryService.getCommands(query)
|
||||
@@ -32,7 +32,7 @@ export const router = new Elysia({
|
||||
}, {
|
||||
query: listTopics,
|
||||
response: listTopicResponseSchema,
|
||||
verifyBasicAuth: false,
|
||||
verifyBasicAuth: true,
|
||||
})
|
||||
.post('/', async ({ body, set }) => {
|
||||
const result = await CommandService.postTopic(body)
|
||||
@@ -44,7 +44,7 @@ export const router = new Elysia({
|
||||
}, {
|
||||
body: postDeleteTopic,
|
||||
response: postDeleteTopicResponseSchema,
|
||||
verifyBasicAuth: false,
|
||||
verifyBasicAuth: true,
|
||||
})
|
||||
.patch('/', () => {
|
||||
return 'Topics'
|
||||
@@ -59,7 +59,7 @@ export const router = new Elysia({
|
||||
}, {
|
||||
body: postDeleteTopic,
|
||||
response: postDeleteTopicResponseSchema,
|
||||
verifyBasicAuth: false,
|
||||
verifyBasicAuth: true,
|
||||
})
|
||||
|
||||
export default router
|
||||
|
||||
Reference in New Issue
Block a user