Skip to content

Commit

Permalink
Merge pull request #575 from alphagov/remove-whitehall-fe-routes
Browse files Browse the repository at this point in the history
Create temporary rake task
  • Loading branch information
JonathanHallam authored Aug 14, 2023
2 parents c598f19 + eec03ab commit 6e0b311
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/tasks/routes.rake
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,9 @@ namespace :routes do

RouteDumper.new(args[:filename]).dump
end

desc "TEMP - Remove Whitehall Frontend routes"
task remove_whitehall_frontend_routes: :environment do
Route.where(handler: "backend", backend_id: "whitehall-frontend").delete_all
end
end

0 comments on commit 6e0b311

Please sign in to comment.