diff --git a/apps/sdlan/src/http_handler/test_handler.erl b/apps/sdlan/src/http_handler/test_handler.erl index 4b2accf..65f71c4 100644 --- a/apps/sdlan/src/http_handler/test_handler.erl +++ b/apps/sdlan/src/http_handler/test_handler.erl @@ -36,6 +36,14 @@ handle_request("POST", "/test/upgrade", _, PostParams) -> }, {ok, 200, sdlan_util:json_data(Data)}; +handle_request("POST", "/test/login_with_account", _, PostParams) -> + logger:debug("[test_handler] get post params: ~p", [PostParams]), + Data = #{ + <<"access_token">> => <<"cookie:1234">>, + <<"network_id">> => 1234 + }, + {ok, 200, sdlan_util:json_data(Data)}; + handle_request("GET", "/test/get_all_networks", _, _) -> {ok, 200, sdlan_util:json_data([8, 9, 10])};