mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-14 17:03:29 +03:00
2b74ebc1f0
* 🚚 create useCrawlApi to use in useCrawler hook * 🚑 fix tracking in Crawl * 🧑💻 add hot reloading within docker containers * 🚑 fix tracking for upload * 🚚 create useUploadApi for fileUpload request * 📈 add june tag for Language change * 🩹 revert dependencies
14 lines
364 B
TypeScript
14 lines
364 B
TypeScript
import { useAxios } from "@/lib/hooks";
|
|
|
|
import { uploadFile, UploadInputProps } from "./upload";
|
|
|
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
export const useUploadApi = () => {
|
|
const { axiosInstance } = useAxios();
|
|
|
|
return {
|
|
uploadFile: async (props: UploadInputProps) =>
|
|
uploadFile(props, axiosInstance),
|
|
};
|
|
};
|