package handlers

import (
	"net/http"

	"github.com/gin-gonic/gin"

	"scrum-solitare/src/models"
)

type PageHandler struct{}

func NewPageHandler() *PageHandler {
	return &PageHandler{}
}

func (h *PageHandler) ShowConfigPage(c *gin.Context) {
	pageData := models.DefaultRoomSetupPageData()
	c.HTML(http.StatusOK, "index.html", pageData)
}

func (h *PageHandler) ShowRoomPage(c *gin.Context) {
	c.HTML(http.StatusOK, "room.html", gin.H{
		"RoomID": c.Param("roomID"),
	})
}
