mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
feat: add instance config endpoint
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import {request, User} from "./index";
|
||||
import {InstanceConfig, request, User} from "./index";
|
||||
|
||||
|
||||
export async function login(email: string, password: string): Promise<boolean> {
|
||||
@@ -16,3 +16,10 @@ export async function getUser(): Promise<User> {
|
||||
})
|
||||
return response.data
|
||||
}
|
||||
|
||||
export async function getConfiguration(): Promise<InstanceConfig> {
|
||||
const response = await request<InstanceConfig>({
|
||||
url: 'config'
|
||||
})
|
||||
return response.data
|
||||
}
|
||||
Reference in New Issue
Block a user