router

package
v4.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(r *gin.Engine, cfg *config.Config)

Setup 设置路由

func SetupNotFound added in v4.1.0

func SetupNotFound(r *gin.Engine)

SetupNotFound makes an /api/v2 path that matches no route answer like a route the edition hides, so the two cannot be told apart. Call it after Setup on the API engine. It is outside Setup because the v2 route inventory (config/scripts/v2_route_inventory.go) reads Setup and accepts only route registrations there.

Types

This section is empty.

Jump to

Keyboard shortcuts

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