package controllers import ( "net/http" "git.aiterp.net/gisle/wrouter" "git.aiterp.net/gisle/wrouter/auth" ) // ListController serves the front page's list, with and without filters var ListController = wrouter.Router{} func listIndex(path string, w http.ResponseWriter, req *http.Request, user *auth.User) bool { if req.Method != "GET" { return false } // tags := strings.Split(path, ",") return true } func init() { ListController.Function("/", listIndex) }