Files
ubicloud/routes/project/load_balancer.rb
Jeremy Evans a02b5e060a Use r.web and r.api
These are faster and simpler equivalents of r.on web? and r.on api?
that are supported by the host_routing plugin.
2024-12-18 11:04:28 -08:00

22 lines
465 B
Ruby

# frozen_string_literal: true
class Clover
hash_branch(:project_prefix, "load-balancer") do |r|
r.get true do
load_balancer_list
end
r.web do
r.post true do
load_balancer_post(r.params["name"])
end
r.get "create" do
authorize("LoadBalancer:create", @project.id)
@option_tree, @option_parents = generate_load_balancer_options
view "networking/load_balancer/create"
end
end
end
end