Files
ubicloud/routes/project/private_subnet.rb

23 lines
522 B
Ruby

# frozen_string_literal: true
class Clover
hash_branch(:project_prefix, "private-subnet") do |r|
r.get true do
private_subnet_list
end
r.web do
r.post true do
check_visible_location
private_subnet_post(typecast_params.nonempty_str("name"))
end
r.get "create" do
authorize("PrivateSubnet:create", @project.id)
@option_tree, @option_parents = generate_private_subnet_options
view "networking/private_subnet/create"
end
end
end
end