1.0.4 • Published 3 years ago

@js-from-routes/axios v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

This package extends @js-from-routes/client to use Axios.

It's useful when already using axios, or when you have a complex API that requires interceptors or different instances.

Installation 💿

npm i @js-from-routes/axios # yarn add @js-from-routes/axios

Usage 🚀

import { formatUrl, request } from '@js-from-routes/axios'

formatUrl('/video_clips/:id/download', { id: 5 }) == '/video_clips/5/download'

const video = await request('get', '/video_clips/:id', { id: 5 })

License

The gem is available as open source under the terms of the MIT License.

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago