Skip to content

Commit

Permalink
Update routes
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtrussler committed Sep 13, 2024
1 parent 79f948b commit 3003143
Showing 1 changed file with 3 additions and 31 deletions.
34 changes: 3 additions & 31 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,35 +17,7 @@
resources :artefacts, only: %i[new create update]

constraints FeatureConstraint.new("design_system_edit") do
resources :editions do
member do
get "diff"
get "metadata"
get "history"
get "admin"
get "tagging", to: "editions#linking"
get "related_external_links", to: "editions#linking"
get "unpublish"
get "diagram"
post "duplicate"
post "update_tagging"
post "process_unpublish"
patch "update_related_external_links"
post "progress"
put "review"
post "skip_fact_check",
to: "editions#progress",
edition: {
activity: {
request_type: "skip_fact_check",
comment: "Fact check skipped by request.",
},
}
end

# resource :downtime, only: %i[new create edit update destroy]
# get "downtime" => "downtimes#destroy", as: :destroy_downtime
end
resources :editions, only: "show"
end

get "editions/:id" => "legacy_editions#show"
Expand Down Expand Up @@ -76,8 +48,8 @@
}
end

# resource :downtime, only: %i[new create edit update destroy]
# get "downtime" => "downtimes#destroy", as: :destroy_downtime
resource :downtime, only: %i[new create edit update destroy]
get "downtime" => "downtimes#destroy", as: :destroy_downtime
end

get "reports" => "reports#index", as: :reports
Expand Down

0 comments on commit 3003143

Please sign in to comment.