mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-03 10:54:38 -05:00
better messages, axios client
This commit is contained in:
10
webUI/react/src/util/client.tsx
Normal file
10
webUI/react/src/util/client.tsx
Normal file
@@ -0,0 +1,10 @@
|
||||
import axios from 'axios';
|
||||
import storage from './storage';
|
||||
|
||||
const clientMaker = () => axios.create({
|
||||
baseURL: storage.getItem('baseURL', 'http://127.0.0.1:4567'),
|
||||
});
|
||||
|
||||
const client = clientMaker();
|
||||
|
||||
export default client;
|
||||
Reference in New Issue
Block a user