feat(products-ui): typed products API client + admin hash routing

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-06-11 16:25:37 -07:00
parent 4dacc2dafd
commit b5dac8886f
4 changed files with 143 additions and 1 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ export interface VerifyResult {
created: boolean;
}
async function errorOf(resp: Response): Promise<ApiError> {
export async function errorOf(resp: Response): Promise<ApiError> {
try {
const body = await resp.json();
if (body && body.error) return body.error as ApiError;