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

Function NewApiHandler

internal/api/api.go:19–24  ·  view source on GitHub ↗
(svc service.ApiService, l *zap.Logger)

Source from the content-addressed store, hash-verified

17}
18
19func NewApiHandler(svc service.ApiService, l *zap.Logger) *ApiHandler {
20 return &ApiHandler{
21 svc: svc,
22 l: l,
23 }
24}
25
26func (h *ApiHandler) RegisterRoutes(server *gin.Engine) {
27 apiGroup := server.Group("/api/apis")

Callers 1

InitWebServerFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected