cleanup, docs

This commit is contained in:
root
2026-06-16 12:21:31 +00:00
parent dff1959341
commit ea08d5f28b
296 changed files with 1571 additions and 1940 deletions
+4 -6
View File
@@ -1,10 +1,8 @@
:title
route_path_normalize
:sig
String route_path_normalize(String path)
:see
>uri
route_path_sanitize
route_path_is_safe
request_query_path
@@ -13,8 +11,8 @@ request_query_route
:content
Trims whitespace and removes leading/trailing `/` from a route path without deciding whether the path is safe.
```cpp
route_path_normalize(" /workspace/projects/ "); // "workspace/projects"
```
For route data that may be used to compose file paths, prefer `route_path_sanitize()` or runtime-populated `context.params["ROUTE_PATH"]`.
:example
print(route_path_normalize("/docs/index/"), "\n");