mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Update service-token-router.ts
This commit is contained in:
committed by
Akhil Mohan
parent
2606e42079
commit
28fdf4ed4b
@@ -16,11 +16,8 @@ export const registerServiceTokenRouter = async (server: FastifyZodProvider) =>
|
||||
server.route({
|
||||
url: "/",
|
||||
method: "GET",
|
||||
onRequest: verifyAuth([AuthMode.JWT]),
|
||||
onRequest: verifyAuth([AuthMode.JWT, AuthMode.SERVICE_TOKEN]),
|
||||
schema: {
|
||||
params: z.object({
|
||||
serviceTokenId: z.string().trim()
|
||||
}),
|
||||
response: {
|
||||
200: sanitizedServiceTokenSchema
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user