This commit is contained in:
anlicheng 2026-04-20 20:31:14 +08:00
parent 0988cc5945
commit 0fc1d25219

View File

@ -30,10 +30,7 @@ start_http_server() ->
Port = proplists:get_value(port, Props),
Dispatcher = cowboy_router:compile([
{'_', [
{"/ws", service_channel, []},
{"/files/[...]", cowboy_static, {dir, "/usr/local/code/downloads"}}
]}
{'_', [{"/ws", service_channel, []}]}
]),
TransOpts = [