UNPKG

admin-on-rest-fr05t1k

Version:

A frontend Framework for building admin applications on top of REST services, using ES6, React and Material UI

17 lines (15 loc) 428 B
import auth from './auth'; import crudFetch from './crudFetch'; import crudResponse from './crudResponse'; import referenceFetch from './referenceFetch'; /** * @param {Object} restClient A REST object with two methods: fetch() and convertResponse() */ export default restClient => function* crudSaga() { yield [ auth(), crudFetch(restClient)(), crudResponse(), referenceFetch(), ]; };