wapi-lib/apps/wapi/test/wapi_dummy_service.erl
2019-02-21 17:34:37 +03:00

11 lines
281 B
Erlang

-module(wapi_dummy_service).
-behaviour(woody_server_thrift_handler).
-export([handle_function/4]).
-spec handle_function(woody:func(), woody:args(), woody_context:ctx(), #{}) ->
{ok, term()}.
handle_function(FunName, Args, _, #{function := Fun}) ->
Fun(FunName, Args).