You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mojol...@googlegroups.com
> I'm creating server-side facet browsing using Mojolicious and jQuery
> UI
>
> http://github.com/dpavlin/mojo_facets >
> I would like to add audit log which would record all URL requests and
> allow undo/redo and persistence using that data.
>
> Extending Mojolicious::Controller seems like logical step, but I can't
> find obvious way to do it. Is there a better way to do this?
Sounds like you might want to use the plugin API, here's an example using hooks.
$app->plugins->add_hook(
before_dispatch => sub {
my ($self, $c) = @_;
my $tx = $c->tx;
# Do whatever you want with the transaction here
}
);