Open ParkSeungwon opened 1 year ago
I could find how to respond to GET or POST request.(http_post or http_get function) But how can I define respose to OPTIONS request?
Hi, if you use express-router then it's necessary to use router's add_handler method:
add_handler
router->add_handler( restinio::http_method_options(), "/options/demo", my_handler );
More information can be found here
I could find how to respond to GET or POST request.(http_post or http_get function) But how can I define respose to OPTIONS request?