Create custom route without /api prefix in url

do i need to install some plugin or do i just create the file? Because when i try to install healthcheck it says not found