mirror of
https://github.com/sablierapp/sablier.git
synced 2025-12-21 13:23:03 +01:00
* refactor: rename providers to Provider * refactor folders * fix build cmd * fix build cmd * fix build cmd * fix cmd start
18 lines
336 B
Go
18 lines
336 B
Go
package api
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
"net/http"
|
|
)
|
|
|
|
func ListThemes(router *gin.RouterGroup, s *ServeStrategy) {
|
|
handler := func(c *gin.Context) {
|
|
c.JSON(http.StatusOK, map[string]interface{}{
|
|
"themes": s.Theme.List(),
|
|
})
|
|
}
|
|
|
|
router.GET("/themes", handler)
|
|
router.GET("/dynamic/themes", handler) // Legacy path
|
|
}
|