Fix serve arguments
This commit is contained in:
parent
9bfe896ead
commit
b03c65f782
|
@ -62,6 +62,6 @@ macro app(def)
|
|||
end
|
||||
end
|
||||
|
||||
function serve(h::App, host = ip"127.0.0.1", port = 1965; kws...)
|
||||
@async listen((req) -> h.warez(req), host, port; kws...)
|
||||
function serve(h::App, context, host = ip"127.0.0.1", port = 1965; kws...)
|
||||
@async listen((req) -> h.warez(req), context, host, port; kws...)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue