sanbo
commited on
Commit
·
afe7ccb
1
Parent(s):
651839a
update sth. at 2024-12-17 23:25:48
Browse files- initialize/router.go +1 -1
initialize/router.go
CHANGED
@@ -15,7 +15,7 @@ func RegisterRouter() *gin.Engine {
|
|
15 |
|
16 |
router := gin.Default()
|
17 |
router.Use(middlewares.Cors)
|
18 |
-
|
19 |
// router.GET("/", func(c *gin.Context) {
|
20 |
// c.JSON(200, gin.H{
|
21 |
// "message": "Hello, world!",
|
|
|
15 |
|
16 |
router := gin.Default()
|
17 |
router.Use(middlewares.Cors)
|
18 |
+
// // 访问根目录时,跳转到 /web
|
19 |
// router.GET("/", func(c *gin.Context) {
|
20 |
// c.JSON(200, gin.H{
|
21 |
// "message": "Hello, world!",
|