Files
SimplyCPQ2/buildtime/internal/handler/mainHandler.go
T
2026-09-21 18:28:23 +02:00

23 lines
442 B
Go

package handlers
import (
"SimplyCPQ2/internal/services"
"github.com/gin-gonic/gin"
)
type MainHandler struct {
propertyTypeService *services.PropertyTypeService
}
func NewMainHandler(p *services.PropertyTypeService) *MainHandler {
return &MainHandler{
propertyTypeService: p,
}
}
func (h *MainHandler) Home(ctx *gin.Context) {
// Implement the logic for the main handler's home endpoint here
ctx.HTML(200, "index.html", nil)
}