diff options
Diffstat (limited to 'test/handlers/delete_resource_h.erl')
-rw-r--r-- | test/handlers/delete_resource_h.erl | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/handlers/delete_resource_h.erl b/test/handlers/delete_resource_h.erl new file mode 100644 index 0000000..f7202a9 --- /dev/null +++ b/test/handlers/delete_resource_h.erl @@ -0,0 +1,17 @@ +%% This module accepts a multipart media type with parameters +%% that do not include boundary. + +-module(delete_resource_h). + +-export([init/2]). +-export([allowed_methods/2]). +-export([delete_resource/2]). + +init(Req, Opts) -> + {cowboy_rest, Req, Opts}. + +allowed_methods(Req, State) -> + {[<<"DELETE">>], Req, State}. + +delete_resource(#{qs := <<"missing">>}, _) -> + no_call. |