Files
ubicloud/routes/merged/project/private_subnet.rb
Jeremy Evans 5173403be0 Replace PrivateSubnetHelper#post with Clover#private_subnet_post
Remove PrivateSubnetHelper and code that creates instances of it,
as it is no longer used.
2024-11-07 10:48:24 -08:00

25 lines
603 B
Ruby

# frozen_string_literal: true
class Clover
branch = lambda do |r|
r.get true do
private_subnet_list
end
r.on web? do
r.post do
@location = LocationNameConverter.to_internal_name(r.params["location"])
private_subnet_post(r.params["name"])
end
r.get "create" do
Authorization.authorize(current_account.id, "PrivateSubnet:create", @project.id)
view "networking/private_subnet/create"
end
end
end
hash_branch(:api_project_prefix, "private-subnet", &branch)
hash_branch(:project_prefix, "private-subnet", &branch)
end