25 lines
478 B
Go
25 lines
478 B
Go
package routes
|
|
|
|
import (
|
|
"net/http"
|
|
"shelves/backend/templates"
|
|
)
|
|
|
|
func SetupGet(w http.ResponseWriter, r *http.Request) {
|
|
html(w, templates.PageBase{Title: "Set up", Body: templates.Form{
|
|
Action: "/setup",
|
|
Fields: []templates.Field{
|
|
templates.Field{
|
|
Label: "Password",
|
|
Type: "password",
|
|
Name: "password",
|
|
},
|
|
templates.Field{
|
|
Label: "Confirm password",
|
|
Type: "password",
|
|
Name: "password-confirmation",
|
|
},
|
|
},
|
|
}.HTML()}.HTML())
|
|
}
|