summaryrefslogtreecommitdiff
path: root/app/controllers/api/agents_controller.rb
blob: a7307f04237b3580248bda6915903f8e2bdb2dce (plain)
1
2
3
4
5
6
7
8
9
10
11
module Api
  class AgentsController < ApiController
    def create
      @agent = Agent.create!(agent_params)
    end

    def agent_params
      params.require(:agent).permit(:hostname)
    end
  end
end