Closed nhunzaker closed 8 years ago
Now that we have namespace and resource APIs, the two-tier style route API is causing some awkwardness. Instead of:
namespace
resource
route
API.route({ users: { create: {..}, read: {..}, update: {..}, destroy: {..} } })
We should instead recommend:
API.namespace('users').route({ create: {..}, read: {..}, update: {..}, destroy: {..} })
The work here is pretty minimal, individual routes are created using src/endpoint.js. src/route.js just sits on top of that. We'd simply have to cut the middleman (route.js), and update the docs.
src/endpoint.js
src/route.js
route.js
Done.
Now that we have
namespace
andresource
APIs, the two-tier styleroute
API is causing some awkwardness. Instead of:We should instead recommend:
The work here is pretty minimal, individual routes are created using
src/endpoint.js
.src/route.js
just sits on top of that. We'd simply have to cut the middleman (route.js
), and update the docs.