(method string)
| 36 | ) |
| 37 | |
| 38 | func allowed(method string) bool { |
| 39 | return method == http.MethodPost || method == http.MethodPut |
| 40 | } |
| 41 | |
| 42 | // Common functionality for these request handlers. Returns true if the request is completely |
| 43 | // handled here and nothing further needs to be done. |