mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
feat(infisical-pg): fixed service token cli endpoint
This commit is contained in:
@@ -16,10 +16,10 @@ export const registerServiceTokenRouter = async (server: FastifyZodProvider) =>
|
||||
server.route({
|
||||
url: "/",
|
||||
method: "GET",
|
||||
onRequest: verifyAuth([AuthMode.JWT, AuthMode.SERVICE_TOKEN]),
|
||||
onRequest: verifyAuth([AuthMode.SERVICE_TOKEN]),
|
||||
schema: {
|
||||
response: {
|
||||
200: sanitizedServiceTokenSchema.merge(z.object({ workspace: z.string() }))
|
||||
200: ServiceTokensSchema.merge(z.object({ workspace: z.string() }))
|
||||
}
|
||||
},
|
||||
handler: async (req) => {
|
||||
|
||||
Reference in New Issue
Block a user