Class: Inferno::Web::Controllers::Requests::Show
- Inherits:
-
Controller
- Object
- Hanami::Action
- Controller
- Inferno::Web::Controllers::Requests::Show
- Defined in:
- lib/inferno/apps/web/controllers/requests/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/requests/show.rb', line 6 def handle(req, res) request = repo.find_full_request(req.params[:id]) halt 404 if request.nil? res.body = serialize(request, view: :full) end |