Class: ActiveStix::BundlesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/active_stix/bundles_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject

GET /stix/bundle GET /stix/bundle.json



4
5
# File 'app/controllers/active_stix/bundles_controller.rb', line 4

def index
end

#showObject



7
8
9
10
# File 'app/controllers/active_stix/bundles_controller.rb', line 7

def show
  bundle = ActiveStix::Bundle.find(params[:id])
  @bundle = JSON.parse(File.open("tmp/#{bundle.stix_id}.json", "r+").read)
end