updated Api Defaults

This commit is contained in:
2025-05-02 20:46:04 +03:00
parent 1920c2a25d
commit 1ce28ec5f0
51 changed files with 986 additions and 1235 deletions

View File

@@ -1,9 +1,4 @@
import { NextRequest } from "next/server";
// Import the createApplication function when it's available
// import { createApplication } from "@/apicalls/application/application";
import { createCreateHandler } from "../../utils";
import { createCreateHandler } from "@/app/api/utils";
import { createApplication } from "@/apicalls/application/application";
// Create a handler for creating applications using our utility function
// When createApplication is available, pass it as the first argument
// No need for field validation as it's already handled by Zod at the page level
export const POST = createCreateHandler();
export const POST = createCreateHandler(createApplication);