Closed rl-king closed 5 years ago
This may be caused by controller_rest
accepting a map instead of a list for State
. Webzmachine doesn’t handle a map argument correctly.
Ah thanks, interesting. Quite a refactor to change that as well.
As suggested, replacing maps with proplists in the dispatch rules fixes this issue
Calling
/data/resources/:id
with a non existing id returns a 500 instead of 404.https://github.com/driebit/ginger/blob/master/modules/mod_ginger_base/controllers/controller_rest_resources.erl#L60