package fiber import ( "github.com/gofiber/fiber/v2" "git.dmitriygnatenko.ru/dima/dmitriygnatenko-v2/internal/services/handler" ) func initPublicHandlers(app *fiber.App, sp ServiceProvider) { mainPageHandler := handler.MainPageHandler( sp.CacheService(), sp.ArticleRepository(), ) app.Get("/:lang", mainPageHandler) app.Get("/", mainPageHandler) tagPageHandler := handler.TagHandler( sp.CacheService(), sp.ArticleRepository(), sp.TagRepository(), ) app.Get("/:lang", tagPageHandler) app.Get("/tag/:tag", tagPageHandler) articlePageHandler := handler.ArticleHandler( sp.CacheService(), sp.ArticleRepository(), sp.TagRepository(), ) app.Get("/:lang