You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
477 B
25 lines
477 B
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)
|
|
}
|