Hi Gavin.

I implemented routing support in my library (that uses MHD) using regex in
PCRE2-style. Take a look at these two examples:

01.
https://github.com/risoflora/libsagui/blob/master/examples/example_router_srv.c
02.
https://github.com/risoflora/libsagui/blob/master/examples/example_router_vars.c

Feel absolutely free to use it and/or send suggestions!

cheers

On Wed, Dec 15, 2021 at 2:04 PM Gavin Henry <ghe...@sentrypeer.org> wrote:

> Hi all,
>
> Does anyone have an example of how you're mapping routes/urls to
> functions before I crack on with my own?
>
> Thanks,
> Gavin.
>
> --
> Kind Regards,
>
> Gavin Henry.
> https://sentrypeer.org


-- 
Silvio Clécio

Reply via email to