Debian Codegraph @

test/handlers/delete_resource_h.erl

raw
1 %% This module accepts a multipart media type with parameters
2 %% that do not include boundary.
3
4 -module(delete_resource_h).
5
6 -export([init/2]).
7 -export([allowed_methods/2]).
8 -export([delete_resource/2]).
9
10 init(Req, Opts) ->
11 {cowboy_rest, Req, Opts}.
12
13 allowed_methods(Req, State) ->
14 {[<<"DELETE">>], Req, State}.
15
16 delete_resource(#{qs := <<"missing">>}, _) ->
17 no_call.