Created routes and controller for front-end