export { httpServer } from "./functions/adapters/httpServer"; export { axiosRequest } from "./functions/server/axiosClient"; export * from "./functions/server"; export * from "./functions/shared"; export * from "./functions/secure_utils"; export * from "./types"; import { httpServer } from "./functions/adapters/httpServer"; export function makeRequest(method: string) { return async function ( url: string, body?: any, opts: any = {} ): Promise { const response = await httpServer(method, url, body, opts); return response.data as T; }; } export const get = makeRequest("GET"); export const post = makeRequest("POST"); export const put = makeRequest("PUT"); export const del = makeRequest("DELETE"); export const http = { get, post, put, del };