Skip to content

IranTIP/mobx-rest-axios-adapter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

js-standard-style Build Status

mobx-rest-axios-adapter

Axios adapter for awesome mobx-rest

Install

yarn add mobx-rest-axios-adapter
// or
npm i -S mobx-rest-axios-adapter

How To Use

import axios from 'axios'
import {apiClient} from 'mobx-rest'
const createAdapter: any = require('mobx-rest-axios-adapter').default


// if you have custom axios config place it right before this line 
apiClient(createAdapter(axios), { commonOptions: { qs: {indices: false } } })

and you ready to go :D

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%