routes

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildHandleLogin

func BuildHandleLogin() http.HandlerFunc

BuildHandleLogin is a function returning a http.HandlerFunc which logs in a user by their credentails.

func BuildHandleLogout

func BuildHandleLogout() http.HandlerFunc

BuildHandleLogout is a function returning a http.HandlerFunc which logs out the current user. Users are getting logged out by setting their authDetails

func RegisterRoutes

func RegisterRoutes(r *mux.Router, db *gorm.DB, log *logrus.Logger, store sessions.Store)

Types

This section is empty.

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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