mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 05:27:52 +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({
|
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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user