controllers

package
v0.0.0-...-668f15d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SignupForm

type SignupForm struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

type Static

type Static struct {
	Home    *views.View
	Contact *views.View
	FAQ     *views.View
}

func NewStatic

func NewStatic() *Static

type Users

type Users struct {
	NewView *views.View
}

func NewUsers

func NewUsers() *Users

func (*Users) Create

func (u *Users) Create(w http.ResponseWriter, r *http.Request)

Process the signup form when a user tries to create a new user account.

POST /signup

func (*Users) New

func (u *Users) New(w http.ResponseWriter, r *http.Request)

Render the form where a user can create a new user account.

GET /signup

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL