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