Skip to content

Commit

Permalink
#115 fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
dedok committed Apr 15, 2019
1 parent 1a62080 commit 549b48e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,20 @@ tnt_http_rest_methods

**context:** *location*

**NOTICE:**
This does not restrict anything. The option just says to NGINX:
use this methods for allowing REST requests.

If you have a wish to set some methods as not allowed methods, then
please use "if" inside locations.

For example:
```nginx
if ($request_method !~ ^(GET|POST|HEAD)$) {
return 405 "Please use HEAD, PATCH and so on";
}
```

Allow to accept one or more REST methods.
If `tnt_method` is not set, then the name of the Tarantool stored procedure is
the first part of the URL path.
Expand Down

0 comments on commit 549b48e

Please sign in to comment.