init
This commit is contained in:
16
router/test.go
Normal file
16
router/test.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"go-desk-service/api"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
type Test struct{}
|
||||
|
||||
var apiTest api.Test
|
||||
|
||||
func (*Test) Init(app *gin.Engine) {
|
||||
test := app.Group("/test")
|
||||
test.GET("/status", apiTest.Status)
|
||||
}
|
||||
Reference in New Issue
Block a user