Initial commit

This commit is contained in:
微凉
2020-12-24 01:39:45 +08:00
commit 430b4cf723
30 changed files with 1223 additions and 0 deletions

17
server/router.go Normal file
View File

@ -0,0 +1,17 @@
package server
import "github.com/gin-gonic/gin"
func InitRouter(engine *gin.Engine) {
engine.Use(CrosHandler())
InitApiRouter(engine)
}
func InitApiRouter(engine *gin.Engine) {
v2:=engine.Group("/api/v2")
{
v2.POST("/get",Get)
v2.POST("/list",List)
v2.POST("/search",Search)
}
}