Route custom returns a 404

had the same issue I had to use localhost:1337/api/route name

bold on the “api” because that was missing and caused me a lot of headaches