2020-04-22 10:27:48 +02:00
|
|
|
package api
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
)
|
|
|
|
|
|
|
|
// 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"})
|
|
|
|
})
|
|
|
|
}
|