diff --git a/docs/guides/routes.md b/docs/guides/routes.md index a8d748130..da8e81650 100644 --- a/docs/guides/routes.md +++ b/docs/guides/routes.md @@ -23,6 +23,10 @@ you can see the first `` is defined as `a` and the second as `b`. If you we ##Methods You can change the HTTP methods the route uses from just the default `GET` by using `method()`, your route macro should look like `CROW_ROUTE(app, "/add//").methods(crow::HTTPMethod::GET, crow::HTTPMethod::PATCH)` or `CROW_ROUTE(app, "/add//").methods("GET"_method, "PATCH"_method)`. +!!! note + + Crow handles `HEAD` and `OPTIONS` methods automatically. So adding those to your handler has no effect. + ##Handler Basically a piece of code that gets executed whenever the client calls the associated route, usually in the form of a [lambda expression](https://en.cppreference.com/w/cpp/language/lambda). It can be as simple as `#!cpp ([](){return "Hello World"})`.

@@ -66,4 +70,4 @@ class a : public crow::returnable return this.as_string(); } } -``` \ No newline at end of file +```