routes

package
v0.0.0-...-9a864a7 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupRoutesWithMiddlewares

func SetupRoutesWithMiddlewares(r *mux.Router) *mux.Router

SetupRoutesWithMiddlewares sets up each route to have the correct formating

Types

type Route

type Route struct {
	URI     string
	Method  string
	Handler func(w http.ResponseWriter, r *http.Request)
}

Route struct

func Load

func Load() []Route

Load loads all of the routes

Jump to

Keyboard shortcuts

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