Просмотр исходного кода

fix: routes api function cause

DDDHuang 4 лет назад
Родитель
Сommit
2d4d7b2923
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      apps/emqx_management/src/emqx_mgmt_api_routes.erl

+ 1 - 1
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}.