I can't figure out why my /healthcheck route is no...
# box-products
d
I can't figure out why my /healthcheck route is not working. It worked when I first created the 6.0 coldbox app, but I removed that /healthcheck route when I added my 4.3 modules and configuration. My app is running good, and now that I want a /healthcheck route it does not work I get a
Invalid Event
error.
Copy code
/config/Routes.cfc
   ...
   route( "/healthcheck", function( event, rc, prc ){
      return "Ok!";
   });
   route( ":handler/:action?" ).end();
   ...
r
would a
fwreinit
help or restarting the cfml service?
d
it hasn't
r
one thing I notice is that the name for yours is
/config/Routes.cfc
. Mine is
/config/Router.cfc
.
d
hmmm
oh my goodness. It worked. well well.
🤘🏼 1
I guess Routes.cfc never worked - or never instantiated. AND I never noticed it didn't because all my routes are in Modules.
👍🏼 1