Skip to content

Commit

Permalink
Routing changes for 'url_title' placement
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-griffen committed Dec 18, 2023
1 parent f8ba21a commit 767b4db
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ def matches?(request)
match '/request/:url_title/new' => 'request#show',
:as => :show_new_request,
:via => :get
match '/details/request/:url_title' => 'request#details',
match '/request/:url_title/details' => 'request#details',
:as => :details_request,
:via => :get
match '/similar/request/:url_title' => 'request#similar',
match '/request/:url_title/similar' => 'request#similar',
:as => :similar_request,
:via => :get

Expand Down Expand Up @@ -151,7 +151,7 @@ def matches?(request)
:as => :info_request_event,
:via => :get

match '/upload/request/:url_title' => 'request#upload_response',
match '/request/:url_title/upload' => 'request#upload_response',
:as => :upload_response,
:via => [:get, :post]
match '/request/:url_title/download' => 'request#download_entire_request',
Expand Down Expand Up @@ -395,7 +395,7 @@ def matches?(request)
:via => :get

#### Comment controller
match '/annotate/request/:url_title' => 'comment#new',
match '/request/:url_title/annotate' => 'comment#new',
:as => :new_comment,
:type => 'request',
:via => [:get, :post]
Expand All @@ -413,7 +413,7 @@ def matches?(request)
#### Track controller
# /track/ is for setting up an email alert for the item
# /feed/ is a direct RSS feed of the item
match '/:feed/request/:url_title' => 'track#track_request',
match '/request/:url_title/:feed' => 'track#track_request',
:as => :track_request,
:feed => /(track|feed)/,
:via => :get
Expand Down Expand Up @@ -504,7 +504,7 @@ def matches?(request)
match '/categorise/play' => 'request_game#play',
:as => :categorise_play,
:via => [:get, :post]
match '/categorise/request/:url_title' => 'request_game#show',
match '/request/:url_title/categorise' => 'request_game#show',
:as => :categorise_request,
:via => :get
match '/categorise/stop' => 'request_game#stop',
Expand Down

0 comments on commit 767b4db

Please sign in to comment.