owl-blogs/web/index_handler.go

20 lines
347 B
Go
Raw Normal View History

2023-06-25 19:32:36 +00:00
package web
import (
"owl-blogs/app"
"github.com/gofiber/fiber/v2"
)
type IndexHandler struct {
entrySvc *app.EntryService
}
func NewIndexHandler(entryService *app.EntryService) *IndexHandler {
return &IndexHandler{entrySvc: entryService}
}
func (h *IndexHandler) Handle(c *fiber.Ctx) error {
return c.SendString("Hello, World 👋!")
}