I’m compiling my routes as such
Dispatch = cowboy_router:compile([
{'_', [{"/", debug_handler, []}]},
{'_', [{"/sysinfo", sysinfo_handler, []}]},
{'_', [{"/proc", proc_handler, []}]}
]),
{ok, _} = cowboy:start_clear(http_listener,
[{port, 8080}],
#{env => #{dispatch => Dispatch}}
).
Whatever the first element is in the list is the only thing that I can visit, everything else gives a 404. I’ve tried every permutation of the three routes, and it’s only the first in the list.
Where am I going wrong?
TIA