2020-04-22 10:27:48 +02:00
|
|
|
package api
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
)
|
|
|
|
|
2023-03-27 19:27:19 +02:00
|
|
|
// GetStatus reports if the server is operational.
|
|
|
|
//
|
2020-04-22 10:27:48 +02:00
|
|
|
// GET /api/v1/status
|
2020-06-25 14:54:04 +02:00
|
|
|
func GetStatus(router *gin.RouterGroup) {
|
2020-04-22 10:27:48 +02:00
|
|
|
router.GET("/status", func(c *gin.Context) {
|
|
|
|
c.JSON(http.StatusOK, gin.H{"status": "operational"})
|
|
|
|
})
|
|
|
|
}
|