Mercurial Hosting > luan
comparison src/luan/host/init.luan @ 1426:94a6a209d4e2
fix
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 24 Nov 2019 16:38:06 -0700 |
parents | 732b5de211fc |
children | 219f2b937f2b |
comparison
equal
deleted
inserted
replaced
1425:b6030fa18839 | 1426:94a6a209d4e2 |
---|---|
48 | 48 |
49 Http.dir = "file:"..dir.."/site" | 49 Http.dir = "file:"..dir.."/site" |
50 Http.is_serving = true | 50 Http.is_serving = true |
51 | 51 |
52 function Io.schemes.site(path,loading) | 52 function Io.schemes.site(path,loading) |
53 return Io.uri( Http.dir..path, loading ) | 53 local u = Io.uri( Http.dir..path, loading ) |
54 u.uri_string = "site:"..path | |
55 return u | |
54 end | 56 end |
55 | 57 |
56 Http.domain = domain | 58 Http.domain = domain |
57 Hosted.is_hosted = true | 59 Hosted.is_hosted = true |
58 | 60 |