Documentation ¶
Index ¶
Constants ¶
View Source
const ( Get = "GET" Post = "POST" Put = "PUT" Patch = "PATCH" Delete = "DELETE" Head = "HEAD" Options = "OPTIONS" HandlerFunc = "HandlerFunc" )
Variables ¶
This section is empty.
Functions ¶
func ProtectRoute ¶
func ProtectRoute(r *chi.Mux, method, path string, h http.HandlerFunc, packageName, packagePath, host string) *chi.Mux
func PublicRoute ¶
func PublicRoute(r *chi.Mux, method, path string, h http.HandlerFunc, packageName, packagePath, host string) *chi.Mux
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.