Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 773 Bytes

README.md

File metadata and controls

25 lines (19 loc) · 773 Bytes

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