Mercurial Hosting > luan
comparison src/luan/host/init.luan @ 1414:4abf88ec66de
add Http.is_serving
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 08 Oct 2019 12:17:31 -0600 |
parents | 1979cff9aad2 |
children | db57d562c4bd |
comparison
equal
deleted
inserted
replaced
1413:514b7a62fe27 | 1414:4abf88ec66de |
---|---|
45 local Mail = require "luan:mail/Mail.luan" | 45 local Mail = require "luan:mail/Mail.luan" |
46 | 46 |
47 Io.password = do_file(dir.."/info.luan").password or error() | 47 Io.password = do_file(dir.."/info.luan").password or error() |
48 | 48 |
49 Http.dir = "file:"..dir.."/site" | 49 Http.dir = "file:"..dir.."/site" |
50 Http.is_serving = true | |
50 | 51 |
51 function Io.schemes.site(path,loading) | 52 function Io.schemes.site(path,loading) |
52 return Io.uri( Http.dir..path, loading ) | 53 return Io.uri( Http.dir..path, loading ) |
53 end | 54 end |
54 | 55 |