Skip to content

Commit

Permalink
chore(minify): MINIFY EVERYTHING
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaraa committed Jun 10, 2024
1 parent 052d060 commit 54516db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/cmd/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ func StartServer(staticFS embed.FS) error {
apisHandler.HandleFunc("GET /history/{page}", gHandler.AuthApi(historyApi.HandleGetMoreHistoryItems))

applicationHandler := http.NewServeMux()
applicationHandler.Handle("/", m.Middleware(pagesHandler))
applicationHandler.Handle("/", pagesHandler)
applicationHandler.Handle("/api/", http.StripPrefix("/api", apisHandler))

log.Info("Starting http server at port " + config.Env().Port)
return http.ListenAndServe(":"+config.Env().Port, applicationHandler)
return http.ListenAndServe(":"+config.Env().Port, m.Middleware(applicationHandler))
}

0 comments on commit 54516db

Please sign in to comment.