Apply verification on devices endpoint
This commit is contained in:
@@ -26,6 +26,7 @@ export const router = new Elysia({
|
|||||||
return { status: 'internal_error', message: 'Server error' }
|
return { status: 'internal_error', message: 'Server error' }
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
|
verifyKey: true,
|
||||||
body: deviceCommandBody,
|
body: deviceCommandBody,
|
||||||
response: deviceCommandResponseSchema,
|
response: deviceCommandResponseSchema,
|
||||||
detail: {
|
detail: {
|
||||||
@@ -56,6 +57,7 @@ export const router = new Elysia({
|
|||||||
return { status: 'internal_error', message: 'Server error' }
|
return { status: 'internal_error', message: 'Server error' }
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
|
verifyKey: true,
|
||||||
query: deviceQueryParams,
|
query: deviceQueryParams,
|
||||||
response: deviceQueryResponseSchema,
|
response: deviceQueryResponseSchema,
|
||||||
detail: {
|
detail: {
|
||||||
|
|||||||
Reference in New Issue
Block a user