mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-23 08:20:26 +00:00
22 lines
492 B
Go
22 lines
492 B
Go
package api
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
// @Summary JFrog repositories
|
|
// @Description **Get list of JFrog repositories**
|
|
// @Description
|
|
// @Description List configured JFrog publish endpoints.
|
|
// @Tags Status
|
|
// @Produce json
|
|
// @Success 200 {array} string "List of JFrog publish endpoints"
|
|
// @Router /api/jfrog [get]
|
|
func apiJFrogList(c *gin.Context) {
|
|
keys := []string{}
|
|
for k := range context.Config().JFrogPublishRoots {
|
|
keys = append(keys, k)
|
|
}
|
|
c.JSON(200, keys)
|
|
}
|