t;
use warnings;
use Digest::MD5 qw/md5_hex/;
use Path::Tiny;
use File::Path qw//;
use Carp;
use JSON qw//;
use Dancer2::Plugin;
use Dancer2::Plugin::ProgressStatus::Object;
use Dancer2::Core::Respo
# We must specify the content_type and encoding here because this plugin
# only works for json, and the D2 config might have other settings
$dsl->app->add_route(
method => 'get',
status(200);
$context->response->content(JSON->new->utf8->encode($data));
$context->response->content_type('application/json');
$context->response->is_encoded(1);