photoprism-client-go/internal/api/status.go

15 lines
238 B
Go
Raw Normal View History

package api
import (
"net/http"
"github.com/gin-gonic/gin"
)
// GET /api/v1/status
func GetStatus(router *gin.RouterGroup) {
router.GET("/status", func(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{"status": "operational"})
})
}