blob: f7202a9a8e427bdd3506240b8210f6df2b66dc89 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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.
|