the cleanup

This commit is contained in:
2026-01-23 21:40:16 -05:00
parent 2ea1f19863
commit c4f69c0811
44 changed files with 183 additions and 42 deletions
+18
View File
@@ -0,0 +1,18 @@
import { springProxy } from "@/lib/springProxy";
import type {
MerchantAdminResponse,
MerchantAdminUpdateRequest,
} from "@/types/merchant-admin";
export async function PUT(
req: Request,
{ params }: { params: { id: string } }
) {
const body = (await req.json()) as MerchantAdminUpdateRequest;
return springProxy<MerchantAdminResponse, MerchantAdminUpdateRequest>(
req,
`/api/v1/admin/merchants/${params.id}`,
{ method: "PUT", body }
);
}