mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 02:50:00 +08:00
no need for redundant extension parameter
This commit is contained in:
parent
73b8cfa7d7
commit
e483176006
|
@ -293,9 +293,9 @@ Discourse::Application.routes.draw do
|
|||
# used to download original images
|
||||
get "uploads/:site/:sha" => "uploads#show", constraints: { site: /\w+/, sha: /[a-f0-9]{40}/ }
|
||||
# used to dowwload attachments
|
||||
get "uploads/:site/original/:tree/:sha:extension" => "uploads#show", constraints: { site: /\w+/, sha: /[a-f0-9]{40}/, extension: /\.\w{2,}/ }
|
||||
get "uploads/:site/original/:tree:sha" => "uploads#show", constraints: { site: /\w+/, tree: /(\w+\/)+/i, sha: /[a-f0-9]{40}/ }
|
||||
# used to download attachments (old route)
|
||||
get "uploads/:site/:id/:sha:extension" => "uploads#show", constraints: { site: /\w+/, id: /\d+/, sha: /[a-f0-9]{16}/, extension: /\.\w{2,}/ }
|
||||
get "uploads/:site/:id/:sha" => "uploads#show", constraints: { site: /\w+/, id: /\d+/, sha: /[a-f0-9]{16}/ }
|
||||
|
||||
get "posts" => "posts#latest"
|
||||
get "posts/by_number/:topic_id/:post_number" => "posts#by_number"
|
||||
|
|
Loading…
Reference in New Issue
Block a user