summaryrefslogtreecommitdiff
path: root/app/controllers/agents/files_controller.rb
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2015-02-21 22:12:49 -0700
committermo khan <mo@mokhan.ca>2015-02-21 22:12:49 -0700
commit7cd78597d794efcf79090377bbc1909a1d6d3ad9 (patch)
treef4f55eb33be3912030c505198e67b1cba9ba2473 /app/controllers/agents/files_controller.rb
parentfeaf5cfae0f948ceebae4d1ff2c80d84cd76cae0 (diff)
parent05b427bd4d9f9c4ea60f9485f06d68de0b689d28 (diff)
merge with master
Diffstat (limited to 'app/controllers/agents/files_controller.rb')
-rw-r--r--app/controllers/agents/files_controller.rb28
1 files changed, 0 insertions, 28 deletions
diff --git a/app/controllers/agents/files_controller.rb b/app/controllers/agents/files_controller.rb
deleted file mode 100644
index 0f493fb..0000000
--- a/app/controllers/agents/files_controller.rb
+++ /dev/null
@@ -1,28 +0,0 @@
-module Agents
- class FilesController < ApplicationController
- before_action :load_agent
- before_action do
- request.format = :json
- end
-
- def index
- end
-
- def show
- @fingerprint = params[:id]
- @file = Disposition.find_by(fingerprint: params[:id])
- message = {
- agent_id: params[:id],
- type: :lookup,
- data: params[:data]
- }
- Publisher.publish("events.scanned.#{@agent.id}", message)
- end
-
- private
-
- def load_agent
- @agent = Agent.find(params[:agent_id])
- end
- end
-end