Fix serve arguments

master
nixo 2020-10-30 22:30:45 +01:00
parent 9bfe896ead
commit b03c65f782
1 changed files with 2 additions and 2 deletions

View File

@ -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