UNPKG

fastapi-rtk

Version:

A React component library for FastAPI in combination with FastAPI React Toolkit backend, built with Mantine, JsonForms, and Zustand.

10 lines (9 loc) 413 B
"use strict"; Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); const utils = require("fastapi-rtk/utils"); const getInfo = async (path, options) => { const { fetchPath, options: fetchOptions } = utils.createFetchParams({ path, method: "GET", options }); const response = await fetch(fetchPath, fetchOptions); return await utils.parseResponse(response); }; exports.getInfo = getInfo;