Archived
Labelburg instead of Labelhaus: the project was renamed again
deploy / deploy (push) Successful in 7s
deploy / deploy (push) Successful in 7s
The proxy and links are below /labelburg, /labelhaus and /brother are redirected there.
This commit is contained in:
1 parent
b1cfe03fa1
commit
320679cedd
4 files changed
+10
-10
No files matched your search
@@ -499,20 +499,20 @@ post '/repository/:id/delete' do
|
||||
redirect '/repository'
|
||||
end
|
||||
|
||||
get '/labelhaus' do
|
||||
redirect '/labelhaus/'
|
||||
get '/labelburg' do
|
||||
redirect '/labelburg/'
|
||||
end
|
||||
|
||||
%w[get post put delete].each do |verb|
|
||||
send(verb, '/labelhaus/*') do
|
||||
proxy_to_brother('/labelhaus', '/' + params[:splat].first)
|
||||
send(verb, '/labelburg/*') do
|
||||
proxy_to_brother('/labelburg', '/' + params[:splat].first)
|
||||
end
|
||||
end
|
||||
|
||||
# Its old address, e.g. in bookmarks
|
||||
# Its old addresses, e.g. in bookmarks
|
||||
%w[get post put delete].each do |verb|
|
||||
send(verb, %r{/brother(/.*)?}) do
|
||||
path = '/labelhaus' + (params[:captures].first || '/')
|
||||
send(verb, %r{/(?:brother|labelhaus)(/.*)?}) do
|
||||
path = '/labelburg' + (params[:captures].first || '/')
|
||||
redirect(request.query_string.empty? ? path : "#{path}?#{request.query_string}", 308)
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user