Commit 70834523 authored by szh's avatar szh

update

parent 8bec3a13
......@@ -8,7 +8,7 @@ import (
// InitRouter initialize routing information
func InitRouter() *gin.Engine {
r := gin.New()
r := gin.Default()
r.Use(gin.Logger())
r.Use(gin.Recovery())
......@@ -19,7 +19,6 @@ func InitRouter() *gin.Engine {
//r.GET("/auth", api.GetAuth)
//r.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler))
//r.POST("/upload", api.UploadImage)
apiv1 := r.Group("/pai")
//获取树莓派基本信息
apiv1.POST("/ticketinfo",v1.GetTicketInfo)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment