Serve files for static
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user