I was going to write a Gist on how you could simplify your Cowboy route declarations,
then it got too big, I wanted to add an example, etc. so... I ended up creating a full
rebar3
/Erlang project in its own GitHub repository:
https://github.com/paulo-ferraz-oliveira/simpler_cowboy_rest
Enjoy!