aboutsummaryrefslogtreecommitdiffstats
path: root/test/http_SUITE_data/rest_postonly_resource.erl
diff options
context:
space:
mode:
Diffstat (limited to 'test/http_SUITE_data/rest_postonly_resource.erl')
-rw-r--r--test/http_SUITE_data/rest_postonly_resource.erl10
1 files changed, 7 insertions, 3 deletions
diff --git a/test/http_SUITE_data/rest_postonly_resource.erl b/test/http_SUITE_data/rest_postonly_resource.erl
index 4f725c9..9b14b24 100644
--- a/test/http_SUITE_data/rest_postonly_resource.erl
+++ b/test/http_SUITE_data/rest_postonly_resource.erl
@@ -1,8 +1,12 @@
-module(rest_postonly_resource).
--export([init/3, allowed_methods/2, content_types_accepted/2, from_text/2]).
-init(_Transport, _Req, _Opts) ->
- {upgrade, protocol, cowboy_rest}.
+-export([init/2]).
+-export([allowed_methods/2]).
+-export([content_types_accepted/2]).
+-export([from_text/2]).
+
+init(Req, Opts) ->
+ {rest, Req, Opts}.
allowed_methods(Req, State) ->
{[<<"POST">>], Req, State}.