Stop using CDNs + Remove bootstrap.min.js because it wasn't necessary

+ Gzip http.FileServer
This commit is contained in:
TwinProduction
2020-09-06 00:55:01 -04:00
parent ed4ed520b7
commit e31c017a00
6 changed files with 58 additions and 12 deletions

View File

@ -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())
}