Refactor codebase and removed leftover development code

This commit is contained in:
2024-04-27 16:07:07 +07:00
parent a539e0a2bf
commit 5cf1aacf23
26 changed files with 63 additions and 120 deletions

View File

@ -9,17 +9,5 @@ func Robot(w http.ResponseWriter, r *http.Request) {
}
func Favicon(w http.ResponseWriter, r *http.Request) {
//currentDir, _ := os.Getwd()
//fmt.Println(currentDir)
//logo := "../../../favicon.ico"
//basePath := filepath.Join(currentDir, "public")
//logoPath := filepath.Join(basePath, logo)
//fmt.Println(filepath.Dir(logoPath))
//if filepath.Dir(logoPath) != basePath {
// log.Print("invalid logo path", logoPath)
// w.WriteHeader(500)
// return
//}
//http.ServeContent()
http.Redirect(w, r, "/public/favicon.ico", http.StatusSeeOther)
}