mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 11:30:13 +08:00
feat: use axios, extract api to another file
This commit is contained in:
1 parent
a40e9eb3a9
commit
66cc1036b4
4 files changed
+59
-5
No files matched your search
@@ -0,0 +1,7 @@
|
||||
import axios from 'axios'
|
||||
|
||||
const api = axios.create({
|
||||
baseURL: 'https://odyssey.wancat.cc/api/v1',
|
||||
})
|
||||
|
||||
export default api
|
||||
Reference in new issue
Block a user