MCPcopy Create free account
hub / github.com/TryCatchLearn/Overflow / POST

Function POST

webapp/src/app/api/sign-image/route.ts:3–11  ·  view source on GitHub ↗
(request: Request)

Source from the content-addressed store, hash-verified

1import { cloudinary } from '@/lib/cloudinary';
2
3export 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…