fix: add better syntax for nextjs proxy

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-11-25 12:10:41 +01:00
parent 6da8267509
commit 828c8c4f91
4 changed files with 11 additions and 10 deletions

View File

@@ -1,5 +1,3 @@
import { createRouteHandler } from '@openpanel/nextjs/server';
const routeHandler = createRouteHandler();
export const GET = routeHandler;
export const POST = routeHandler;
export const { GET, POST } = createRouteHandler();