Skip to content

Instantly share code, notes, and snippets.

@NovoManu
Created August 18, 2019 17:02
Show Gist options
  • Save NovoManu/c2bac9d9239d2f1a8e1a30caaec45afa to your computer and use it in GitHub Desktop.
Save NovoManu/c2bac9d9239d2f1a8e1a30caaec45afa to your computer and use it in GitHub Desktop.
import { BaseApi } from '@/api/baseApi'
import { FetchApi } from '@/api/fetchApi'
import { AxiosApi } from '@/api/axiosApi'
export class Api extends BaseApi {
private provider: any = new AxiosApi()
async fetch(url: string): Promise<any> {
return await this.provider.fetch(url)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment