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

Function NewPostHandler

internal/api/post.go:17–22  ·  view source on GitHub ↗
(svc service.PostService, intSvc service.InteractiveService)

Source from the content-addressed store, hash-verified

15}
16
17func NewPostHandler(svc service.PostService, intSvc service.InteractiveService) *PostHandler {
18 return &PostHandler{
19 svc: svc,
20 intSvc: intSvc,
21 }
22}
23
24func (ph *PostHandler) RegisterRoutes(server *gin.Engine) {
25 postGroup := server.Group("/api/posts")

Callers 1

InitWebServerFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected