Explorar o código

fix: close dashboard before beta 1

DDDHuang %!s(int64=4) %!d(string=hai) anos
pai
achega
e62af95d0d
Modificáronse 1 ficheiros con 7 adicións e 5 borrados
  1. 7 5
      apps/emqx_dashboard/src/emqx_dashboard.erl

+ 7 - 5
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()),