Skip to content

Commit

Permalink
examples: Fix routing policies handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Tectu committed Dec 29, 2023
1 parent 0bb53cf commit ad98369
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/server/routing/policies/main.cpp
Expand Up @@ -118,7 +118,7 @@ int main()
// Serve files
sub_router->add_file_serving("/files", cfg.doc_root);
}
router.add_policy("/admin/.+", policy);
router.add_policy("/admin(/.+)?", policy);
router.add_subrouter("/admin", std::move(sub_router));
}

Expand Down

0 comments on commit ad98369

Please sign in to comment.