@conveyal/commute
Version:
Commute analysis
22 lines (19 loc) • 429 B
JavaScript
import makeGenericModelActions from '../utils/actions'
const actions = makeGenericModelActions({
commands: {
'Collection GET': {},
'Collection POST': {
redirectionStrategy: 'toParent'
},
'DELETE': {},
'GET': {},
'PUT': {
redirectionStrategy: 'toParent'
}
},
parentKey: 'siteId',
parentName: 'site',
pluralName: 'commuters',
singularName: 'commuter'
})
export default actions