mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 17:41:57 +08:00
Add: Ping router
This commit is contained in:
18
routers/router.go
Normal file
18
routers/router.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package routers
|
||||
|
||||
import (
|
||||
"Cloudreve/routers/controllers"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func InitRouter() *gin.Engine {
|
||||
r := gin.Default()
|
||||
|
||||
// 路由
|
||||
v3 := r.Group("/Api/V3")
|
||||
{
|
||||
v3.GET("Ping", controllers.Ping)
|
||||
|
||||
}
|
||||
return r
|
||||
}
|
||||
Reference in New Issue
Block a user