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) 442 B
"use strict"; Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); const utils = require("fastapi-rtk/utils"); const getItems = async (path, queryParams, options) => { const { fetchPath, options: fetchOptions } = utils.createFetchParams({ path, method: "GET", queryParams, options }); const response = await fetch(fetchPath, fetchOptions); return await utils.parseResponse(response); }; exports.getItems = getItems;