medol-be/app/module/articles/controller/controller.go

17 lines
334 B
Go
Raw Normal View History

2024-03-05 19:15:53 +00:00
package controller
2025-02-13 15:32:59 +00:00
import (
"github.com/rs/zerolog"
"go-humas-be/app/module/articles/service"
)
2024-03-05 19:15:53 +00:00
type Controller struct {
Articles ArticlesController
}
2025-02-13 15:32:59 +00:00
func NewController(ArticlesService service.ArticlesService, log zerolog.Logger) *Controller {
2024-03-05 19:15:53 +00:00
return &Controller{
2025-02-13 15:32:59 +00:00
Articles: NewArticlesController(ArticlesService, log),
2024-03-05 19:15:53 +00:00
}
2025-02-13 15:32:59 +00:00
}