Class: Inferno::Web::Controllers::TestSuites::Show

Inherits:
Controller
  • Object
show all
Defined in:
lib/inferno/apps/web/controllers/test_suites/show.rb

Instance Method Summary collapse

Methods inherited from Controller

call, resource_class, resource_name

Instance Method Details

#handle(req, res) ⇒ Object



6
7
8
9
10
11
# File 'lib/inferno/apps/web/controllers/test_suites/show.rb', line 6

def handle(req, res)
  test_suite = repo.find(req.params[:id])
  halt 404 if test_suite.nil?

  res.body = serialize(test_suite, view: :full)
end