diff --git a/CRUD/handlers/crud_matcher_base.hpp b/CRUD/handlers/crud_matcher_base.hpp index 4ca9ef4..fefb5c4 100644 --- a/CRUD/handlers/crud_matcher_base.hpp +++ b/CRUD/handlers/crud_matcher_base.hpp @@ -34,6 +34,10 @@ namespace http::crud { _handlers["PUT"] = handler; return *this; } + crud_matcher_base & option(request_handler_type handler) { + _handlers["OPTION"] = handler; + return *this; + } template void handle_request(const Request& request, Response& response, Matched const& what) { auto &handler = _handlers[request.method];