Formated API in routes file