svoi-fr / mirai

Refugee assistant bot
https://docs.danswer.dev/
MIT License
2 stars 1 forks source link

Refactor Fetch Requests to Use Axios with Interceptors #78

Open zknone opened 3 months ago

zknone commented 3 months ago

Currently, our project uses the Fetch API for making HTTP requests. To improve our codebase, we propose refactoring these fetch requests to use Axios. This change will allow us to benefit from Axios' features, such as interceptors, which can be used to add headers or tokens to requests more efficiently.