photoprism/internal/api/status.go
Michael Mayer 5d59b50912 Sharing: ACL authorization for REST API #18
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-06-25 14:54:04 +02:00

14 lines
238 B
Go

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"})
})
}