mirror of
https://github.com/yv1ing/gin-admin.git
synced 2025-10-24 10:12:05 +08:00
完成基本框架搭建及系统用户登录流程
This commit is contained in:
19
internal/router/router.go
Normal file
19
internal/router/router.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
|
||||
systemapi "gin-admin/internal/api/system"
|
||||
)
|
||||
|
||||
// @Author: yv1ing
|
||||
// @Author: me@yvling.cn
|
||||
// @Date: 2025/8/28 16:17
|
||||
// @Desc: 路由注册入口
|
||||
|
||||
func SetupRoutes(eng *gin.Engine) {
|
||||
api := eng.Group("/api")
|
||||
|
||||
/* 系统内置接口 */
|
||||
api.POST("/sys/login", systemapi.SysUserLoginHandler)
|
||||
}
|
||||
Reference in New Issue
Block a user