aboutsummaryrefslogtreecommitdiff
path: root/src/user
diff options
context:
space:
mode:
authorAlexander Kavon <hawk@alexkavon.com>2023-11-28 00:45:37 -0500
committerAlexander Kavon <hawk@alexkavon.com>2023-11-28 00:45:37 -0500
commit7d7059d53891bc1abb284d9b288505a5d406b307 (patch)
treef3ae7435a0a67ce1e5c939966738fea01bb9644e /src/user
parentd7d2b376405d91a201b8b830160458c5dd6df4a9 (diff)
build ui and render templates, build routes
Diffstat (limited to 'src/user')
-rw-r--r--src/user/routes.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/user/routes.go b/src/user/routes.go
index b265e67..791213d 100644
--- a/src/user/routes.go
+++ b/src/user/routes.go
@@ -9,15 +9,15 @@ import (
var Routes = server.Routes{
server.Route{
Name: "Create",
- Method: "POST",
- Pattern: "/users",
+ Method: "GET",
+ Path: "/users/create",
AuthRequired: false,
HandlerFunc: Create,
},
server.Route{
Name: "Me",
Method: "GET",
- Pattern: "/users/me",
+ Path: "/users/me",
AuthRequired: true,
HandlerFunc: Show,
},
@@ -25,6 +25,7 @@ var Routes = server.Routes{
func Create(s *server.Server) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
+ s.Ui.Render(w, "users/create", nil)
}
}