updated Api Defaults
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user