diff --git a/frontend/routes.rb b/frontend/routes.rb index 9a3df95..ef86c84 100644 --- a/frontend/routes.rb +++ b/frontend/routes.rb @@ -1,3 +1,7 @@ ArchivesSpace::Application.routes.draw do - match('/plugins/top_containers_labels/print_labels' => 'top_containers_labels#print_labels', :via => [:post]) + [AppConfig[:frontend_proxy_prefix], AppConfig[:frontend_prefix]].uniq.each do |prefix| + scope prefix do + match('plugins/top_containers_labels/print_labels' => 'top_containers_labels#print_labels', :via => [:post]) + end + end end