Sha256: f14a137d27e691bbff52b50d2f768dfbd0727874ebb2572cca57662f51678f06
Contents?: true
Size: 493 Bytes
Versions: 9
Compression:
Stored size: 493 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 def index response.headers['Content-Type'] = 'application/vnd.acme.volume' response end end
Version data entries
9 entries across 9 versions & 1 rubygems