11 lines
552 B
TypeScript
11 lines
552 B
TypeScript
import { NextRequest } from "next/server";
|
|
// Import the updateApplication function when it's available
|
|
// import { updateApplication } from "@/apicalls/application/application";
|
|
import { createUpdateHandler } from "../../utils";
|
|
|
|
// Create a handler for updating applications using our utility function
|
|
// When updateApplication is available, pass it as the first argument
|
|
// No need for field validation as it's already handled by Zod at the page level
|
|
// We only need to ensure 'id' is present for updates
|
|
export const POST = createUpdateHandler();
|