mirror of
https://github.com/sablierapp/sablier.git
synced 2025-12-24 14:31:51 +01:00
14 lines
320 B
Go
14 lines
320 B
Go
package api
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
"github.com/sablierapp/sablier/pkg/sablier"
|
|
"net/http"
|
|
)
|
|
|
|
func ListInstances(router *gin.RouterGroup, s *sablier.Sablier) {
|
|
router.GET("/instances", func(c *gin.Context) {
|
|
c.IndentedJSON(http.StatusOK, map[string]interface{}{"instances": s.InstancesInfo(c)})
|
|
})
|
|
}
|