feathersjs-ecosystem / feathers-redux

Integrate Feathers with your Redux store
MIT License
114 stars 23 forks source link

Mention ugly URLs in example #49

Closed bitflower closed 6 years ago

bitflower commented 6 years ago

Hey guys, this little hint on "ugly" URLs would have saved me hours of head ache. Maybe it will for others too! Cheers

eddyystop commented 6 years ago

That is documented in the API

- serviceNames (required, string, array of strings, or object) - The paths of the Feathers services to reduxify.
  - 'messages' is short for { messages: 'messages' }. You can dispatch calls with dispatch(services.messages.create(data, params));.
  - ['users', 'messages'] is short for { users: 'users', messages: 'messages' }.
  - { '/buildings/:buildingid': 'buildings' } will reduxify the Feathers service configured with the path /buildings/:buildingid. You can dispatch calls with dispatch(services.buildings.create(data, params));.