/
githubmirror
/
photoprism
Обзор
Документация
Войти
/
githubmirror
/
photoprism
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
internal/api/status.go
21 строка
479 B
Michael Mayer
API: Update swagger endpoint documentation #5133
28 авг 2025, 12:20
28 авг 2025, 12:20
7bebf3b
Код
Авторство
О чём код?
package api import ( "net/http" "github.com/gin-gonic/gin" ) // GetStatus responds with status code 200 if the server is operational. // // @Summary responds with status code 200 if the server is operational // @Id GetStatus // @Tags Debug // @Produce json // @Success 200 {object} gin.H // @Router /api/v1/status [get] func GetStatus(router *gin.RouterGroup) { router.GET("/status", func(c *gin.Context) { c.JSON(http.StatusOK, gin.H{"status": "operational"}) }) }