UNPKG
@burriko/devour-client
Version:
latest (2.0.15)
2.0.15
2.0.14
2.0.13
A lightweight, framework agnostic, flexible JSON API client
github.com/twg/devour
twg/devour
@burriko/devour-client
/
src
/
middleware
/
request.js
8 lines
(7 loc)
•
150 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
module
.
exports
= {
name
:
'axios-request'
,
req
:
function
(
payload
) {
let
jsonApi = payload.
jsonApi
return
jsonApi.
axios
(payload.
req
) } }