$VERSION = '0.0102';
use parent 'Plack::Component';
use Catmandu;
use Router::Simple;
use JSON qw(encode_json);
use namespace::clean;
sub bag {
my ($self) = @_;
$self->{_bag} ||= $self->_bui
$res = {data => $data};
[
'200', ['Content-Type' => 'application/vnd.api+json'],
[encode_json($res)],
];
}
sub method_not_allowed {
['405', ['Content-Type' => 'text/plain