aboutsummaryrefslogtreecommitdiff
path: root/src/auth/routes.go
blob: 5a28756e4194f1fd5bf023c476f8c36d108e0417 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package auth

import (
	"net/http"

	"gitlab.com/alexkavon/newsstand/src/server"
)

var Routes = server.Routes{
	server.Route{
		Name:         "Register",
		Method:       "GET",
		Path:         "/auth/register",
		AuthRequired: false,
		HandlerFunc:  Register,
	},
}

func Register(s *server.Server) http.HandlerFunc {
	return func(w http.ResponseWriter, r *http.Request) {
		s.Ui.Render(w, "auth/register", nil)
	}
}