Skip to content

Commit

Permalink
remove unused routes
Browse files Browse the repository at this point in the history
No unused routes found. gives a list of unused routes. Using this, remove any routes that are not needed
  • Loading branch information
madhums committed Feb 27, 2024
1 parent 3d09907 commit 20c92cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
match "search" => "stories#search", :via => %i[get post], :as => :search
delete "remove_documents/:id" => "stories#remove_documents", :as => :remove_documents
end
resources :story_updates, as: :updates, shallow: true, shallow_prefix: "story"
resources :story_updates, as: :updates, shallow: true, shallow_prefix: "story", except: %i[show index]
resources :discussions, shallow: true do
resources :posts
resources :posts, except: %i[show index]
end
end
get "stories/:story_id/discussions/:id", to: "discussions#show", as: :story_discussion
Expand Down

0 comments on commit 20c92cb

Please sign in to comment.