PreRelease v1
This commit is contained in:
8
app/api/uploadthing/core.ts
Normal file
8
app/api/uploadthing/core.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
// src/app/api/uploadthing/core.ts
|
||||
|
||||
import { createRouteHandler } from "uploadthing/next";
|
||||
import { ourFileRouter } from "@/lib/upload";
|
||||
|
||||
export const { GET, POST } = createRouteHandler({
|
||||
router: ourFileRouter,
|
||||
});
|
||||
3
app/api/uploadthing/route.ts
Normal file
3
app/api/uploadthing/route.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
// src/app/api/uploadthing/route.ts
|
||||
|
||||
export { GET, POST } from "./core";
|
||||
Reference in New Issue
Block a user