Skip to content

Commit

Permalink
docs: fix type in routing docs
Browse files Browse the repository at this point in the history
  • Loading branch information
exbotanical committed Oct 30, 2023
1 parent 7fe3826 commit 327cd8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/documentation/routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ int main () {
ys_router_attr *attr = ys_router_attr_init();
ys_router *router = ys_router_init(attr);
ys_router_register(router, "/", handler, YS_METHOD_GET);
ys_router_register(router, "/", handler, YS_METHOD_POST);
ys_router_register(router, "/", get_handler, YS_METHOD_GET);
ys_router_register(router, "/", post_handler, YS_METHOD_POST);
// ...
}
Expand Down

0 comments on commit 327cd8b

Please sign in to comment.