Make the "redirect" parameter optional. When the parameter is not specified, the server responds with an empty response (204). This allows API clients to call the method without the need to handle redirects and HTML responses. Even when the "redirect" parameter is included, the builtin afterRemote hook still calls next(), so that user-provided afterRemote hooks are executed too. |
||
---|---|---|
.. | ||
models |