A web blog and personal homepage engine written in Go.
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.
 
 

24 lines
493 B

  1. package controllers
  2. import (
  3. "net/http"
  4. "git.kirsle.net/apps/gophertype/pkg/glue"
  5. "git.kirsle.net/apps/gophertype/pkg/middleware"
  6. "git.kirsle.net/apps/gophertype/pkg/responses"
  7. "github.com/gorilla/mux"
  8. )
  9. func init() {
  10. glue.Register(glue.Endpoint{
  11. Path: "/admin/setup",
  12. Middleware: []mux.MiddlewareFunc{
  13. middleware.ExampleMiddleware,
  14. },
  15. Handler: func(w http.ResponseWriter, r *http.Request) {
  16. responses.RenderTemplate(w, "_builtin/initial_setup.gohtml", nil)
  17. },
  18. })
  19. }