Skip to content

Instantly share code, notes, and snippets.

View Radinax's full-sized avatar
💭
Looking for remote work :)

Adrian Beria Radinax

💭
Looking for remote work :)
View GitHub Profile
@Radinax
Radinax / api.tsx
Created October 30, 2025 14:52
NEW API stuff
/** biome-ignore-all lint/suspicious/noConsole: We use console.error for logging API errors */
import { toast } from "sonner";
import { z } from "zod";
import config from "@/lib/config";
import { getErrorMessage } from "./error-codes";
// Types
/**
* URL path that must start with a forward slash