routes

package
v0.0.0-...-d926718 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUser

func CreateUser(db *gorm.DB, w http.ResponseWriter, r *http.Request)

CreateUser Creates a new user

func DeleteUser

func DeleteUser(db *gorm.DB, w http.ResponseWriter, r *http.Request)

DeleteUser updates a user when given an ID

func HandleUserRoutes

func HandleUserRoutes(router *mux.Router, db *gorm.DB)

HandleUserRoutes maps all relevant routes

func LogInUser

func LogInUser(db *gorm.DB, w http.ResponseWriter, r *http.Request)

LogInUser handles logging in users

Types

This section is empty.

Jump to

Keyboard shortcuts

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