I'm trying to determine the HTTP method (GET, POST) send to an erlang module in nitrogen. I've added nitrogen as a dependency via rebar.
I'm attempting to do this via the wf_context:request_method/0 from nitrogen_core. However I can't figure out how to import/include the method. I've tried using import/2, include and include_lib. None have worked. Simply invoking the method with wf_context:request_method()
doesn't work aswell.
The error I keep getting:
{error,error,undef,[{wf_context,request_method,[],[]}, ...]}