package ticket

import (
	"net/http"

	"github.com/gin-gonic/gin"
)

func TicketHandler(c *gin.Context) {
	tickets, err := getAllTicket()
	if err != nil {
		c.AbortWithError(http.StatusInternalServerError, err)
	}
	c.JSON(200, tickets)
}
