router

package
v0.0.0-...-7418c02 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRouter

func AddRouter(method func(relativePath string, handlers ...gin.HandlerFunc) gin.IRoutes, relativePath string, handlers ...gin.HandlerFunc)

AddRouter 兼容路由斜杆,路由( test/和test ) 解决问题:HTTP/1.1 301 Moved Permanently redirecting request 301: /test/ --> /test

func RegisterConfig

func RegisterConfig() []func(r *gin.Engine)

RegisterConfig 路由配置

func RegisterOther

func RegisterOther(router *gin.Engine)

func RegisterRouter

func RegisterRouter(router *gin.Engine)

RegisterRouter 注册路由

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
JackTT - Gopher 🇻🇳