From e62af95d0d0c806e25f8c84c82107da71683ec47 Mon Sep 17 00:00:00 2001 From: DDDHuang <904897578@qq.com> Date: Thu, 30 Sep 2021 09:28:39 +0800 Subject: [PATCH] fix: close dashboard before beta 1 --- apps/emqx_dashboard/src/emqx_dashboard.erl | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/apps/emqx_dashboard/src/emqx_dashboard.erl b/apps/emqx_dashboard/src/emqx_dashboard.erl index d109dd445..2868ae4fd 100644 --- a/apps/emqx_dashboard/src/emqx_dashboard.erl +++ b/apps/emqx_dashboard/src/emqx_dashboard.erl @@ -47,11 +47,13 @@ start_listeners() -> type => apiKey, name => "authorization", in => header}}}}, - Dispatch = [ - {"/", cowboy_static, {priv_file, emqx_dashboard, "www/index.html"}}, - {"/static/[...]", cowboy_static, {priv_dir, emqx_dashboard, "www/static"}}, - {'_', cowboy_static, {priv_file, emqx_dashboard, "www/index.html"}} - ], + %% TODO: open dashboard after beta 1 + %% Dispatch = [ + %% {"/", cowboy_static, {priv_file, emqx_dashboard, "www/index.html"}}, + %% {"/static/[...]", cowboy_static, {priv_dir, emqx_dashboard, "www/static"}}, + %% {'_', cowboy_static, {priv_file, emqx_dashboard, "www/index.html"}} + %% ], + Dispatch = [], BaseMinirest = #{ base_path => ?BASE_PATH, modules => minirest_api:find_api_modules(apps()),