Set up routes for mongoose backend.