svrjs-nextjs-website/app/api/uploadthing/route.ts

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
});