feat: implement configuration management and enhance user registration flow

This commit is contained in:
2026-03-11 22:26:16 +01:00
parent 62549faffa
commit 0f1b9c11fe
12 changed files with 370 additions and 95 deletions

View File

@@ -1,6 +1,7 @@
import type {
TokenResponse,
UserResponse,
ConfigResponse,
ChannelResponse,
CreateChannelRequest,
UpdateChannelRequest,
@@ -54,6 +55,10 @@ async function request<T>(
}
export const api = {
config: {
get: () => request<ConfigResponse>("/config"),
},
auth: {
register: (email: string, password: string) =>
request<TokenResponse>("/auth/register", {