|
@@ -114,10 +114,10 @@ func main() {
|
|
fs := http.FileServer(http.Dir("./web"))
|
|
fs := http.FileServer(http.Dir("./web"))
|
|
if *enable_gzip {
|
|
if *enable_gzip {
|
|
//Gzip enabled. Always serve with gzip if header exists
|
|
//Gzip enabled. Always serve with gzip if header exists
|
|
- http.Handle("/", gzipmiddleware.Compress(mroutner(fs)))
|
|
|
|
|
|
+ http.Handle("/", gzipmiddleware.Compress(mrouter(fs)))
|
|
} else {
|
|
} else {
|
|
//Normal file server without gzip
|
|
//Normal file server without gzip
|
|
- http.Handle("/", mroutner(fs))
|
|
|
|
|
|
+ http.Handle("/", mrouter(fs))
|
|
}
|
|
}
|
|
|
|
|
|
//Set database read write to ReadOnly after startup if demo mode
|
|
//Set database read write to ReadOnly after startup if demo mode
|