Created
August 18, 2019 16:51
-
-
Save NovoManu/7b6cc62fe14658c66af619f2379a2bbf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios from 'axios' | |
import { BaseApi } from '@/api/baseApi' | |
export class AxiosApi extends BaseApi { | |
constructor() { | |
super() | |
} | |
async fetch({ url }): Promise<any> { | |
const { data } = await axios.get(`${this.baseUrl}${url}`) | |
return data | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No problem 👍
Article was very helpful and these issues were of minimal significance to the usefulness over all.
Cheers