Catalyst-View-TT-Progressive
view release on metacpan or search on metacpan
lib/Catalyst/View/TT/Progressive.pm view on Meta::CPAN
if (res.abc) {
... instantiate some JS ...
}
},
error: function (req) {}
};
...
})();
when using this approach you may want to prevent accessing of endpoints directly from a browser an easy way of achieving this is checking for a header in Root->auto and then redirecting.
unless ($c->req->header('api')) {
$c->response->redirect($c->uri_for('/invalid_url'));
return;
}
=head1 AUTHOR
LNATION, C<< <thisusedtobeanemail at gmail.com> >>
( run in 0.341 second using v1.01-cache-2.11-cpan-cc502c75498 )