router

package
v0.0.37 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Get     = "GET"
	Post    = "POST"
	Put     = "PUT"
	Patch   = "PATCH"
	Delete  = "DELETE"
	Head    = "HEAD"
	Options = "OPTIONS"
)

Variables

This section is empty.

Functions

func ProtectRoute

func ProtectRoute(r *chi.Mux, method, pattern string, h http.HandlerFunc) *chi.Mux

func PublicRoute

func PublicRoute(r *chi.Mux, method, pattern string, h http.HandlerFunc) *chi.Mux

Types

This section is empty.

Jump to

Keyboard shortcuts

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