mirror of
https://github.com/skyle1995/NetworkAuth.git
synced 2026-05-25 02:24:05 +08:00
Add classification annotations
This commit is contained in:
@@ -1,14 +1,18 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"networkDev/controllers/home"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// RegisterHomeRoutes 注册主页路由
|
||||
// 只包含根路径,用于主页功能
|
||||
func RegisterHomeRoutes(router *gin.Engine) {
|
||||
// 根路径 - 主页
|
||||
router.GET("/", home.RootHandler)
|
||||
}
|
||||
package server
|
||||
|
||||
import (
|
||||
"networkDev/controllers/home"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// ============================================================================
|
||||
// 路由注册函数
|
||||
// ============================================================================
|
||||
|
||||
// RegisterHomeRoutes 注册主页路由
|
||||
// 只包含根路径,用于主页功能
|
||||
func RegisterHomeRoutes(router *gin.Engine) {
|
||||
// 根路径 - 主页
|
||||
router.GET("/", home.RootHandler)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user