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

Method RegisterRoutes

internal/api/api.go:26–33  ·  view source on GitHub ↗
(server *gin.Engine)

Source from the content-addressed store, hash-verified

24}
25
26func (h *ApiHandler) RegisterRoutes(server *gin.Engine) {
27 apiGroup := server.Group("/api/apis")
28
29 apiGroup.POST("/list", h.ListApis)
30 apiGroup.POST("/create", h.CreateAPI)
31 apiGroup.POST("/update", h.UpdateAPI)
32 apiGroup.DELETE("/:id", h.DeleteAPI)
33}
34
35// ListApis 获取API列表
36func (a *ApiHandler) ListApis(c *gin.Context) {

Callers 1

InitWebFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected