Edit an existing route in the Router
If there’s a need to edit a Route in the database, follow these instructions:
$ ssh router-backend-1.router.production $ cd /var/apps/router-api $ sudo -u deploy govuk_setenv router-api bundle exec rails c > r = Route.where(incoming_path: '/path-to-item').first
r object directly (see the
available options), eg:
> r.route_type = 'exact' > r.save!
once you’ve edited the Route appropriately and saved it, you need to reload the router:
This page is owned by #2ndline and needs to be reviewed