2024-06-20 19:46:48 +02:00
|
|
|
import { createRouteHandler } from "uploadthing/next";
|
|
|
|
import { ourFileRouter } from "./core";
|
|
|
|
|
2024-06-22 11:57:32 +02:00
|
|
|
// Force the API to use SSR instead of static generation
|
|
|
|
export const dynamic = "force-dynamic";
|
|
|
|
|
2024-06-20 19:46:48 +02:00
|
|
|
export const { GET, POST } = createRouteHandler({
|
|
|
|
router: ourFileRouter,
|
|
|
|
});
|