You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
322 B
15 lines
322 B
import { ofetch } from "ofetch"; |
|
|
|
export interface MetaResponse { |
|
version: string; |
|
name: string; |
|
description?: string; |
|
hasCaptcha: boolean; |
|
captchaClientKey?: string; |
|
} |
|
|
|
export async function getBackendMeta(url: string): Promise<MetaResponse> { |
|
return ofetch<MetaResponse>("/meta", { |
|
baseURL: url, |
|
}); |
|
}
|
|
|