The backend for the AiteStory website
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

7 years ago
  1. package controllers
  2. import (
  3. "net/http"
  4. "git.aiterp.net/gisle/wrouter"
  5. "git.aiterp.net/gisle/wrouter/auth"
  6. )
  7. // ListController serves the front page's list, with and without filters
  8. var ListController = wrouter.Router{}
  9. func listIndex(path string, w http.ResponseWriter, req *http.Request, user *auth.User) bool {
  10. if req.Method != "GET" {
  11. return false
  12. }
  13. // tags := strings.Split(path, ",")
  14. return true
  15. }
  16. func init() {
  17. ListController.Function("/", listIndex)
  18. }