fix: middleware auth

This commit is contained in:
2026-02-06 13:56:19 +07:00
parent a6eaba5944
commit 27d2d88a8b
+4 -4
View File
@@ -20,7 +20,7 @@ export const router = new Elysia({
}, {
query: listTopics,
response: listTopicResponseSchema,
verifyBasicAuth: true,
verifyBasicAuth: false,
})
.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: true,
verifyBasicAuth: false,
})
.post('/', async ({ body, set }) => {
const result = await CommandService.postTopic(body)
@@ -44,7 +44,7 @@ export const router = new Elysia({
}, {
body: postDeleteTopic,
response: postDeleteTopicResponseSchema,
verifyBasicAuth: true,
verifyBasicAuth: false,
})
.patch('/', () => {
return 'Topics'
@@ -59,7 +59,7 @@ export const router = new Elysia({
}, {
body: postDeleteTopic,
response: postDeleteTopicResponseSchema,
verifyBasicAuth: true,
verifyBasicAuth: false,
})
export default router