changed public id format to be 128 bit length.
This commit is contained in:
1 parent
78d50d9a6d
commit
d2cf9d7498
11 files changed
+187
-22
No files matched your search
@@ -17,7 +17,7 @@ func GetAddressToServe() string {
|
||||
return params.Host + ":" + strconv.Itoa(params.Port)
|
||||
}
|
||||
|
||||
func serveStatic2(w http.ResponseWriter, request *http.Request) {
|
||||
func serveStatic(w http.ResponseWriter, request *http.Request) {
|
||||
filepath := request.URL.Path
|
||||
w.Header().Set("Cache-Control", "private, max-age=0, no-cache")
|
||||
http.ServeFile(w, request, path.Join(STATIC_DIR_PATH, filepath))
|
||||
@@ -26,7 +26,7 @@ func serveStatic2(w http.ResponseWriter, request *http.Request) {
|
||||
func main() {
|
||||
mux := http.NewServeMux()
|
||||
mux.Handle("/api/", api.Create("/api"))
|
||||
mux.HandleFunc("/", serveStatic2)
|
||||
mux.HandleFunc("/", serveStatic)
|
||||
|
||||
address := GetAddressToServe()
|
||||
fmt.Println("server running at", address)
|
||||
|
||||
Reference in new issue
Block a user