mirror of
https://github.com/photoprism/photoprism.git
synced 2025-10-05 16:57:17 +08:00
22 lines
436 B
Go
22 lines
436 B
Go
package api
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
// GetStatus reports if the server is operational.
|
|
//
|
|
// @Summary reports if the server is operational
|
|
// @Id GetStatus
|
|
// @Tags Server
|
|
// @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"})
|
|
})
|
|
}
|