Adding REST API and public routes.