Funnyadd / assetto-corsa-server-dashboard

Online dashboard for managing assetto corsa dedicated servers hosted on a linux machine (start/stop servers). Connected to firebase, you can easily manage users and their access to servers.
https://assetto.adammihajlovic.ca
0 stars 0 forks source link

Try generalizing the Axios config #7

Closed Funnyadd closed 3 months ago

Funnyadd commented 3 months ago

It would be cool to set the header with the refreshtoken and set "Axios.defaults.withCredentials = true" in only one place instead of in each document where an Axios call is made.

Funnyadd commented 3 months ago

Fixed in PR #1. Ended up added the baseURL as well as the other configs mentioned in this issue to remove even more duplicated code.