resource-scraper/pkg/handler/handler.go

29 lines
523 B
Go

package handler
import (
"git.amok.space/yevhen/resource-scraper/pkg/service"
)
type Handler struct {
services *service.Service
}
func New(services *service.Service) *Handler {
return &Handler{services: services}
}
func (h *Handler) InitConsole() string {
return h.rutracker()
}
//func (h *Handler) Base(services *service.Service) *Handler {
// return &Handler{services: services}
//}
//func (h *Handler) InitApi() *chi.Mux {
// api := chi.NewRouter()
// api.Get("/", web.ApiFallbackHandler)
//
// return api
//}