diff --git a/README.md b/README.md index d77279f9..10837154 100644 --- a/README.md +++ b/README.md @@ -330,15 +330,18 @@ You can modify endpoints by configuring `access.endpoints` in your config: settings: access: endpoints: - - !/v1/register - - !/v1/unregister - - !/v1/qrcodelink - - !/v1/contacts + - "!/v1/register" + - "!/v1/unregister" + - "!/v1/qrcodelink" + - "!/v1/contacts" - /v2/send ``` By default adding an endpoint explictly allows access to it, use `!` to block it instead. +> [!IMPORTANT] +> When using `!` to block you must enclose the endpoint with quotes, like in the example above. + | Config (Allow) | (Block) | Result | | | | | :------------- | :------------- | :--------: | --- | :---------------: | --- | | `/v2/send` | `unset` | **all** | 🛑 | **`/v2/send`** | ✅ |