mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
17 lines
371 B
Erlang
17 lines
371 B
Erlang
%% 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.
|