Reset project
This commit is contained in:
3
main.go
3
main.go
@@ -24,6 +24,7 @@ func init() {
|
||||
if debug {
|
||||
programLevel = slog.LevelDebug
|
||||
}
|
||||
programLevel = slog.LevelDebug
|
||||
|
||||
if jsonLogger {
|
||||
jsonHandler := slog.NewJSONHandler(os.Stdout, &slog.HandlerOptions{
|
||||
@@ -60,7 +61,7 @@ func main() {
|
||||
mux.Handle("GET /static/", http.StripPrefix("/static/", fileServer))
|
||||
|
||||
mux.HandleFunc("GET /favicon.ico", func(w http.ResponseWriter, r *http.Request) {
|
||||
data, err := static.ReadFile("web/static/img/favicon.ico")
|
||||
data, err := static.ReadFile("web/static/favicon.ico")
|
||||
if err != nil {
|
||||
http.NotFound(w, r)
|
||||
return
|
||||
|
Reference in New Issue
Block a user