|
|
@ -2615,6 +2615,7 @@ end
|
|
|
|
get "/:id" do |env|
|
|
|
|
get "/:id" do |env|
|
|
|
|
id = env.params.url["id"]
|
|
|
|
id = env.params.url["id"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if md = id.match(/[a-zA-Z0-9_-]{11}/)
|
|
|
|
params = [] of String
|
|
|
|
params = [] of String
|
|
|
|
env.params.query.each do |k, v|
|
|
|
|
env.params.query.each do |k, v|
|
|
|
|
params << "#{k}=#{v}"
|
|
|
|
params << "#{k}=#{v}"
|
|
|
@ -2627,6 +2628,9 @@ get "/:id" do |env|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
env.redirect url
|
|
|
|
env.redirect url
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
env.response.status_code = 404
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
error 404 do |env|
|
|
|
|
error 404 do |env|
|
|
|
|