Created routes for API and site