svrjs-nextjs-website/app/api/uploadthing/route.ts
2024-08-27 16:45:36 +05:30

8 lines
215 B
TypeScript

import { createRouteHandler } from "uploadthing/next";
import { ourFileRouter } from "./core";
export const dynamic = "force-dynamic";
export const { GET, POST } = createRouteHandler({
router: ourFileRouter,
});