Serve files for static

This commit is contained in:
bel
2020-01-20 16:06:21 -07:00
parent 2bb3bee83c
commit 097ca9b8c0
5 changed files with 85 additions and 12 deletions

View File

@@ -13,6 +13,7 @@ var (
StoreAddr string
StoreUser string
StorePass string
Root string
MyTinyTodo string
)
@@ -32,6 +33,7 @@ func Refresh() {
as.Append(args.STRING, "storeuser", "user of store", "")
as.Append(args.STRING, "storepass", "pass of store", "")
as.Append(args.STRING, "mtt", "url of php server", "http://localhost:38808")
as.Append(args.STRING, "root", "root of static files", "./public")
if err := as.Parse(); err != nil {
panic(err)
}
@@ -41,5 +43,6 @@ func Refresh() {
StoreAddr = as.Get("storeaddr").GetString()
StoreUser = as.Get("storeuser").GetString()
StorePass = as.Get("storepass").GetString()
Root = as.Get("root").GetString()
MyTinyTodo = as.Get("mtt").GetString()
}