Refactor codebase and removed leftover development code
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user