~patrickb/cro-http-middleware-goatcounter

Cro Middleware to feed data to GoatCounter
Improve META6.json
Add LICENSE, README and Changes files
a30c1541 — Patrick Zimmermann 10 months ago
Minor improvements

refs

main
browse  log 

clone

read-only
https://git.sr.ht/~patrickb/cro-http-middleware-goatcounter
read/write
git@git.sr.ht:~patrickb/cro-http-middleware-goatcounter

You can also use your local clone with git send-email.

=begin pod

=head1 NAME

Cro::HTTP::Middleware::GoatCounter

=head1 SYNOPSIS

=begin code :lang<raku>

use Cro::HTTP::Server;
use Cro::HTTP::Middleware::GoatCounter;

my $gc-api-url = "https://MYCODE.goatcounter.com/api/v0";
my $gc-token = "hienaitkyvzjvriheac2402407538153tn7v53c520hihtaylei";

my Cro::Service $http = Cro::HTTP::Server.new(
    :$host, :$port,
    application => routes(),
    before => [
        Cro::HTTP::Middleware::GoatCounter.new(
            api-url => $gc-api-url,
            token   => $gc-token
        ),
    ],
);

=end code

=head1 DESCRIPTION

This module provides a simple Cro to GoatCounter integration.
See the GoatCounter homepage L<https://www.goatcounter.com/> for more
information.

=head1 AUTHOR

Patrick Böker <patrick.boeker@posteo.de>

=head1 COPYRIGHT AND LICENSE

Copyright 2020-2024 Patrick Böker

This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.

=end pod
Do not follow this link