From 2d4d7b29230b364bff0632239bf5dbbca65f6758 Mon Sep 17 00:00:00 2001 From: DDDHuang <904897578@qq.com> Date: Tue, 20 Jul 2021 13:56:20 +0800 Subject: [PATCH] fix: routes api function cause --- apps/emqx_management/src/emqx_mgmt_api_routes.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/emqx_management/src/emqx_mgmt_api_routes.erl b/apps/emqx_management/src/emqx_mgmt_api_routes.erl index d40a26ecd..2b514eb51 100644 --- a/apps/emqx_management/src/emqx_mgmt_api_routes.erl +++ b/apps/emqx_management/src/emqx_mgmt_api_routes.erl @@ -84,7 +84,7 @@ route_api() -> <<"200">> => emqx_mgmt_util:response_schema(<<"Route info">>, <<"route">>), <<"404">> => - emqx_mgmt_util:not_found_schema(<<"Topic not found">>, [?TOPIC_NOT_FOUND]) + emqx_mgmt_util:response_error_schema(<<"Topic not found">>, [?TOPIC_NOT_FOUND]) }}}, {"/routes/:topic", Metadata, route}.