Fix health check, need to use defs within routes