Refactor controller and handlers

This commit is contained in:
TwinProduction
2021-09-12 18:39:09 -04:00
parent d86afb2381
commit c57a930bf3
19 changed files with 871 additions and 623 deletions

View File

@ -0,0 +1,12 @@
package handler
import (
"net/http"
)
// FavIcon handles requests for /favicon.ico
func FavIcon(staticFolder string) http.HandlerFunc {
return func(writer http.ResponseWriter, request *http.Request) {
http.ServeFile(writer, request, staticFolder+"/favicon.ico")
}
}