Sha256: 85acc313f90be67286c73881f2d2968afa9f2cf0ddf5ac2d3b680604d2781f5c
Contents?: true
Size: 392 Bytes
Versions: 2
Compression:
Stored size: 392 Bytes
Contents
class Volumes < BaseClass include Praxis::Controller implements ApiResources::Volumes include Concerns::BasicApi before actions: [:show] do |controller| #puts "before action for volumes" end def show(id:, **other_params) response.body = { id: id, other_params: other_params } response.headers['Content-Type'] = 'application/vnd.acme.volume' response end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
praxis-0.10.1 | spec/spec_app/app/controllers/volumes.rb |
praxis-0.10.0 | spec/spec_app/app/controllers/volumes.rb |