import { PublicConfigTypeDef, PrivateConfigTypeDef } from "yuebing-model"; import * as a from "./api.js"; export const configService = { browserHeaders, loadPublicConfig, loadPrivateConfig, }; function browserHeaders(): Promise> { return $fetch("/api/config/headers", { method: "GET" }).then(a.handleJsonResponse>); } function loadPublicConfig(): Promise { return $fetch("/api/config/public", { method: "GET" }).then(a.handleJsonResponse); } function loadPrivateConfig(): Promise { return $fetch("/api/config/private", { method: "GET" }).then(a.handleJsonResponse); }