Dancer2-Plugin-Ajax

 view release on metacpan or  search on metacpan

lib/Dancer2/Plugin/Ajax.pm  view on Meta::CPAN


    ajax '/check_for_update' => sub {
        my $self = shift;
        
        my $method = $self->app->request->method;
        # ...
    }

=head1 CONFIGURATION

By default the plugin will use a content-type of 'text/xml', but this can be overridden
with the plugin setting C<content_type>.

Here is an example to use JSON:

  plugins:
    Ajax:
      content_type: 'application/json'

=head1 AUTHOR



( run in 1.355 second using v1.01-cache-2.11-cpan-524268b4103 )