import { defineEndpoint } from "@wrnexus/core";
import { CreateUserSchema } from "../schemas/create-user.ts";

/** Schema-derived request and response types are emitted into wrnexus.generated.d.ts. */
export const POST = defineEndpoint({
  input: CreateUserSchema,
  output: CreateUserSchema,
  description: "Validate and echo a typed user payload.",
  handler(input) {
    return input;
  },
});
