ctan-openapi-fetch
Version:
A thin wrapper around `openapi-fetch` for use with the CTAN API
27 lines (24 loc) • 570 B
JavaScript
// lib/json-1.1.ts
import createFetchClient, {
createPathBasedClient as createPathBasedFetchClient
} from "openapi-fetch";
// ../ctan-openapi/dist/json-1.1.ts
var servers = [
{
url: "https://ctan.org/json/1.1"
}
];
// lib/json-1.1.ts
var baseUrl = servers[0].url;
function createClient(options) {
return createFetchClient({ baseUrl, ...options });
}
function createPathBasedClient(options) {
return createPathBasedFetchClient({ baseUrl, ...options });
}
export {
baseUrl,
createClient,
createPathBasedClient
};
//# sourceMappingURL=json-1.1.js.map