feat: implement configuration management and enhance user registration flow
This commit is contained in:
@@ -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", {
|
||||
|
||||
Reference in New Issue
Block a user