Closed nhunzaker closed 10 years ago
Can you give an example of your use-case? Specifically, where you can only access GET?
Like if I wanted create a record, the verb for this is POST, but I couldn't find anything on setting up a route for this. When I looked under the hood, I found this line that makes it seem like routes.js
can only configure GET routes.
Is this incorrect?
Yes this is correct. You need a decoupled REST API and then you can create
records the backbone way like model.save
.
routes.js is more like the backbone router it only handle routes for views.
Cool, that totally makes sense. Thanks!
What is the suggested method for updating/creating a new record? For example, if I want to manage user registration or authentication. It seems like GET is the only verb I have access to. Should this be placed directly on the express server, or do you recommend posting directly with the targeted API?