UNPKG

fastapi-rtk

Version:

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

14 lines (13 loc) 467 B
"use strict"; Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); const utils = require("fastapi-rtk/utils"); const getItem = async (path, id, options) => { const { fetchPath, options: fetchOptions } = utils.createFetchParams({ path: utils.urlJoin(path, id.toString()), method: "GET", options }); const response = await fetch(fetchPath, fetchOptions); return await utils.parseResponse(response); }; exports.getItem = getItem;