Stop using CDNs + Remove bootstrap.min.js because it wasn't necessary
+ Gzip http.FileServer
This commit is contained in:
1 parent
ed4ed520b7
commit
e31c017a00
6 files changed
+58
-12
No files matched your search
@@ -25,7 +25,7 @@ func main() {
|
||||
cfg := loadConfiguration()
|
||||
http.HandleFunc("/api/v1/results", serviceResultsHandler)
|
||||
http.HandleFunc("/health", healthHandler)
|
||||
http.Handle("/", http.FileServer(http.Dir("./static")))
|
||||
http.Handle("/", GzipHandler(http.FileServer(http.Dir("./static"))))
|
||||
if cfg.Metrics {
|
||||
http.Handle("/metrics", promhttp.Handler())
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user