(request: Request)
| 1 | import { cloudinary } from '@/lib/cloudinary'; |
| 2 | |
| 3 | export async function POST(request: Request) { |
| 4 | const body = (await request.json()) as {paramsToSign: Record<string, string>} |
| 5 | const {paramsToSign} = body; |
| 6 | |
| 7 | const signature = cloudinary.v2.utils.api_sign_request(paramsToSign, |
| 8 | process.env.CLOUDINARY_API_SECRET as string); |
| 9 | |
| 10 | return Response.json({signature}); |
| 11 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…