mirror of
https://github.com/sablierapp/sablier.git
synced 2025-12-31 10:07:20 +01:00
20 lines
415 B
Go
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())
|
|
})
|
|
}
|