Zig-router

Now that we have std.http.Server, we need a router for it :wink:

8 Likes

Some updates I made based on the needs working on backend where I use zig-router:

  • Added support for non-strict path matching
    • That is, you can now have route like /object/:key with option .strict = false and the last path parameter will be expanded to rest of the path and the router will match it if the request starts with this path prefix, that is the path does not have to match exactly
  • Singleton query parameters are now supported ?thing which maps to a thing: ?void in a schema struct
2 Likes