23 lines
442 B
Go
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)
|
|
}
|