diff --git a/web/src/lib/api/client.ts b/web/src/lib/api/client.ts new file mode 100644 index 00000000..5c8c09a8 --- /dev/null +++ b/web/src/lib/api/client.ts @@ -0,0 +1,16 @@ +export type ApiError = { + code: string; + message: string; + status: number; +}; + +export type User = { + id: string; + username: string; + is_admin: boolean; +}; + +export type LoginResponse = { + token: string; + user: User; +};