MCPcopy Create free account
hub / github.com/GoSimplicity/LinkMe / RegisterRoutes

Method RegisterRoutes

internal/api/check.go:21–28  ·  view source on GitHub ↗
(server *gin.Engine)

Source from the content-addressed store, hash-verified

19}
20
21func (ch *CheckHandler) RegisterRoutes(server *gin.Engine) {
22 checkGroup := server.Group("/api/checks")
23
24 checkGroup.POST("/approve", ch.ApproveCheck)
25 checkGroup.POST("/reject", ch.RejectCheck)
26 checkGroup.GET("/list", ch.ListChecks)
27 checkGroup.GET("/detail", ch.CheckDetail)
28}
29
30// ApproveCheck 审核通过
31func (ch *CheckHandler) ApproveCheck(ctx *gin.Context) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected