Add file handlers, s3 support

This commit is contained in:
2024-12-27 12:46:28 +05:30
parent 88046d6810
commit 40b2ab54f0
11 changed files with 1533 additions and 0 deletions

View File

@@ -36,6 +36,7 @@ export default function organizationRoutes(fastify: FastifyInstance) {
},
},
config: { requiredClaims: ["org:read"] },
preHandler: [fastify.authorize],
},
getOrgHandler
);
@@ -63,6 +64,8 @@ export default function organizationRoutes(fastify: FastifyInstance) {
200: $org("createOrgResponse"),
},
},
config: { requiredClaims: ["org:write"] },
preHandler: [fastify.authorize],
},
updateOrgHandler
);