Init
This commit is contained in:
13
webcontroller/notfound.go
Normal file
13
webcontroller/notfound.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package webcontroller
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"fornaxian.com/pixeldrain-web/log"
|
||||
"fornaxian.com/pixeldrain-web/webcontroller/templates"
|
||||
)
|
||||
|
||||
func ServeNotFound(w http.ResponseWriter, r *http.Request) {
|
||||
log.Debug("Not Found: %s", r.URL)
|
||||
templates.Get().ExecuteTemplate(w, "error", nil)
|
||||
}
|
Reference in New Issue
Block a user