mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-15 05:31:33 +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),
|
|
};
|
|
};
|