Add zod payload contracts for admin API routes (#358)

* Add zod route payload contracts for admin APIs

* Fix review follow-ups for zod admin payloads

* Refactor account payload parser helpers
This commit is contained in:
Cita
2026-04-01 12:52:55 +08:00
committed by GitHub
parent 6a55effd3b
commit 8c3be1a613
43 changed files with 2765 additions and 404 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ type UndiciConnectOptions = {
httpSocket?: Socket;
};
function normalizeSiteUrl(value: string): string {
export function normalizeSiteUrl(value: string): string {
const trimmed = (value || '').trim();
if (!trimmed) return '';