src/pages/api/integrations/credentials/reveal.ts
import { integrationsConfigurationApiController } from "@/backend/integrations-configurations/integrations-configurations.controller";
import { requestHandler } from "@/backend/lib/request";
import { UserPermissions } from "@/shared/constants/user";
export default requestHandler(
{
POST: async () => {
return await integrationsConfigurationApiController.listWithRevealedValues();
},
},
[
{
_type: "canUser",
body: UserPermissions.CAN_MANAGE_APP_CREDENTIALS,
},
{
_type: "withPassword",
},
]
);