3e4121cc78
Signed-off-by: Michael Mayer <michael@photoprism.app>
16 lines
292 B
Go
16 lines
292 B
Go
package api
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
// GetStatus reports if the server is operational.
|
|
//
|
|
// GET /api/v1/status
|
|
func GetStatus(router *gin.RouterGroup) {
|
|
router.GET("/status", func(c *gin.Context) {
|
|
c.JSON(http.StatusOK, gin.H{"status": "operational"})
|
|
})
|
|
}
|