mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-12 11:26:07 +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
375 B
TypeScript
14 lines
375 B
TypeScript
import { useAxios } from "@/lib/hooks";
|
|
|
|
import { CrawlInputProps, crawlWebsiteUrl } from "./crawl";
|
|
|
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
export const useCrawlApi = () => {
|
|
const { axiosInstance } = useAxios();
|
|
|
|
return {
|
|
crawlWebsiteUrl: async (props: CrawlInputProps) =>
|
|
crawlWebsiteUrl(props, axiosInstance),
|
|
};
|
|
};
|