Add a link to simple_routes test file.

This commit is contained in:
Madeorsk 2024-10-11 00:01:33 +02:00
parent d0af8642b4
commit 0c67b2b073
Signed by: Madeorsk
GPG key ID: 677E51CA765BB79F

View file

@ -45,7 +45,7 @@ exe.root_module.addImport("zouter", zdotenv.module("zouter"));
### Example
Here is a quick example of how to set up a router. It is an extract from the full test code at [`example.zig`](https://code.zeptotech.net/zedd/zouter/src/branch/main/tests/example.zig).
Here is a quick example of how to set up a router. It is an extract from the full test code at [`example.zig`](https://code.zeptotech.net/zedd/zouter/src/branch/main/tests/example.zig). You may want to have a look to [`simple_routes.zig`](https://code.zeptotech.net/zedd/zouter/src/branch/main/tests/simple_routes.zig) which shows more advanced features.
```zig
/// GET /foo/:arg/bar request handler.