svrjs-nextjs-website/app/api/uploadthing/route.ts
2024-06-20 23:16:48 +05:30

6 lines
175 B
TypeScript

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