Change static URL
This commit is contained in:
@@ -113,6 +113,8 @@ func main() {
|
||||
|
||||
fs := http.FileServer(http.Dir("/var/www/static"))
|
||||
|
||||
panic(http.ListenAndServe(fmt.Sprintf(":%d", *http_port), fs))
|
||||
http.Handle("static", fs)
|
||||
|
||||
panic(http.ListenAndServe(fmt.Sprintf(":%d", *http_port), nil))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user