routing

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GET  = "get"
	POST = "post"
)

Exporting constants to avoid hardcoding these all over, and ending up with a uppercase "POST" bug in the future.

Variables

This section is empty.

Functions

func AddRoute

func AddRoute(engine *gin.Engine, path string, method string, fn gin.HandlerFunc) *gin.Engine

func Build

func Build() *gin.Engine

func CORS

func CORS() gin.HandlerFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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