fix
This commit is contained in:
parent
0988cc5945
commit
0fc1d25219
@ -30,10 +30,7 @@ start_http_server() ->
|
|||||||
Port = proplists:get_value(port, Props),
|
Port = proplists:get_value(port, Props),
|
||||||
|
|
||||||
Dispatcher = cowboy_router:compile([
|
Dispatcher = cowboy_router:compile([
|
||||||
{'_', [
|
{'_', [{"/ws", service_channel, []}]}
|
||||||
{"/ws", service_channel, []},
|
|
||||||
{"/files/[...]", cowboy_static, {dir, "/usr/local/code/downloads"}}
|
|
||||||
]}
|
|
||||||
]),
|
]),
|
||||||
|
|
||||||
TransOpts = [
|
TransOpts = [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user