Class: MissionControl::Servers::IngressesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/mission_control/servers/ingresses_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



6
7
8
9
10
11
12
13
14
# File 'app/controllers/mission_control/servers/ingresses_controller.rb', line 6

def create
  ingress = @project.services.new(ingress_params)
  request = @project.requests.new(tally_params)
  if ingress.save && request.save
    head :ok
  else
    head :unprocessable_entity
  end
end