Update service-token-router.ts

This commit is contained in:
Daniel Hougaard
2024-01-27 12:38:23 +05:30
committed by Akhil Mohan
parent 2606e42079
commit 28fdf4ed4b
@@ -16,11 +16,8 @@ export const registerServiceTokenRouter = async (server: FastifyZodProvider) =>
server.route({ server.route({
url: "/", url: "/",
method: "GET", method: "GET",
onRequest: verifyAuth([AuthMode.JWT]), onRequest: verifyAuth([AuthMode.JWT, AuthMode.SERVICE_TOKEN]),
schema: { schema: {
params: z.object({
serviceTokenId: z.string().trim()
}),
response: { response: {
200: sanitizedServiceTokenSchema 200: sanitizedServiceTokenSchema
} }