Add downtime API routes
Refactor formatting to be more readable