Files
gorush/vendor/gopkg.in/appleboy/gin-status-api.v1/status.go
Bo-Yi Wu 23bd0d0c56 feat: switch glide to govendor. (#186)
* feat: switch glide to govendor.

* fix: testing
2017-02-19 15:04:00 +08:00

13 lines
251 B
Go

package status
import (
"github.com/gin-gonic/gin"
api "gopkg.in/fukata/golang-stats-api-handler.v1"
"net/http"
)
// StatusHandler is gin handle for get system status.
func StatusHandler(c *gin.Context) {
c.JSON(http.StatusOK, api.GetStats())
}