Commit 70834523 authored by szh's avatar szh

update

parent 8bec3a13
...@@ -8,7 +8,7 @@ import ( ...@@ -8,7 +8,7 @@ import (
// InitRouter initialize routing information // InitRouter initialize routing information
func InitRouter() *gin.Engine { func InitRouter() *gin.Engine {
r := gin.New() r := gin.Default()
r.Use(gin.Logger()) r.Use(gin.Logger())
r.Use(gin.Recovery()) r.Use(gin.Recovery())
...@@ -19,7 +19,6 @@ func InitRouter() *gin.Engine { ...@@ -19,7 +19,6 @@ func InitRouter() *gin.Engine {
//r.GET("/auth", api.GetAuth) //r.GET("/auth", api.GetAuth)
//r.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler)) //r.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler))
//r.POST("/upload", api.UploadImage) //r.POST("/upload", api.UploadImage)
apiv1 := r.Group("/pai") apiv1 := r.Group("/pai")
//获取树莓派基本信息 //获取树莓派基本信息
apiv1.POST("/ticketinfo",v1.GetTicketInfo) 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