Implement backend and frontend routing