Files
sablier/internal/api/themes.go
2024-11-22 00:07:53 -05:00

20 lines
415 B
Go

package api
import (
"github.com/gin-gonic/gin"
"github.com/sablierapp/sablier/pkg/sablier"
"net/http"
)
func GetThemes(router *gin.RouterGroup, s *sablier.Sablier) {
router.GET("/themes", func(c *gin.Context) {
c.JSON(http.StatusOK, s.Groups())
})
}
func PreviewTheme(router *gin.RouterGroup, s *sablier.Sablier) {
router.GET("/themes/", func(c *gin.Context) {
c.JSON(http.StatusOK, s.Groups())
})
}