ISSUE-203

This commit is contained in:
Andrea Spacca
2019-03-30 12:35:57 +01:00
parent 314d24a876
commit 61a4b4fe33
11 changed files with 9304 additions and 9608 deletions

View File

@ -121,6 +121,16 @@ func WebPath(s string) OptionFn {
}
}
func ProxyPath(s string) OptionFn {
return func(srvr *Server) {
if s[len(s)-1:] != "/" {
s = s + string(filepath.Separator)
}
srvr.proxyPath = s
}
}
func TempPath(s string) OptionFn {
return func(srvr *Server) {
if s[len(s)-1:] != "/" {
@ -243,6 +253,7 @@ type Server struct {
tempPath string
webPath string
proxyPath string
gaKey string
userVoiceKey string