routes

package
v0.0.0-...-509c4cf Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package routes defines routes for the app

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dashboard

func Dashboard(w http.ResponseWriter, r *http.Request)

Dashboard is the endpoint to display a welcome page to auth'd db.users

func Login

func Login(w http.ResponseWriter, r *http.Request)

Login is an endpoint to db.users to login through, injects a sessionToken that is valid for 2 hours

func Logout

func Logout(w http.ResponseWriter, r *http.Request)

Logout is an endpoint to destroy the current user session

func Register

func Register(w http.ResponseWriter, r *http.Request)

Register is the endpoint to register a new user

Types

This section is empty.

Jump to

Keyboard shortcuts

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