Files
fnx_web/webcontroller/history.go

18 lines
470 B
Go
Raw Normal View History

2017-11-10 12:39:55 +01:00
package webcontroller
import (
"net/http"
"fornaxian.com/pixeldrain-web/log"
"fornaxian.com/pixeldrain-web/webcontroller/templates"
"github.com/julienschmidt/httprouter"
)
2017-12-17 23:34:49 +01:00
// ServeHistory is the controller for the upload history viewer
2017-11-10 12:39:55 +01:00
func ServeHistory(w http.ResponseWriter, r *http.Request, p httprouter.Params) {
2017-12-17 23:34:49 +01:00
err := templates.Get().ExecuteTemplate(w, "history-cookies", nil)
2017-11-10 12:39:55 +01:00
if err != nil {
log.Error("Error executing template history: %s", err)
}
}