UNPKG

fastapi-rtk

Version:

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

15 lines (14 loc) 501 B
"use strict"; Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); const utils = require("fastapi-rtk/utils"); const postBulk = async (path, handler, data, options) => { const { fetchPath, options: fetchOptions } = utils.createFetchParams({ path: utils.urlJoin(path, "/bulk", handler), method: "POST", body: data, options }); const response = await fetch(fetchPath, fetchOptions); return await utils.parseResponse(response); }; exports.postBulk = postBulk;