refactor(routing): moved some stuff, added some comments

This commit is contained in:
Jef Roosens 2024-03-02 22:36:58 +01:00
parent cf4451740f
commit 115baecde8
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
6 changed files with 72 additions and 43 deletions

View file

@ -77,6 +77,8 @@ void test_routing_merge() {
TEST_CHECK(lnm_http_router_route(&match, rtr1, lnm_http_method_get, "/test2") == lnm_http_route_err_match);
TEST_CHECK(match.route == rt2);
lnm_http_router_free(rtr1);
}
void test_routing_nest() {
@ -97,6 +99,7 @@ void test_routing_nest() {
TEST_CHECK(lnm_http_router_route(&match, r2, lnm_http_method_get, "/test/test2") == lnm_http_route_err_match);
lnm_http_router_free(r2);
}
TEST_LIST = {