2016-04-10 21:14:44 +00:00
|
|
|
// Package internals has methods that suit none of the API packages.
|
|
|
|
package internals
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
)
|
|
|
|
|
|
|
|
type statusResponse struct {
|
2016-04-10 21:18:56 +00:00
|
|
|
Status int `json:"status"`
|
2016-04-10 21:14:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Status is used for checking the API is up by the ripple website, on the status page.
|
|
|
|
func Status(c *gin.Context) {
|
|
|
|
c.JSON(200, statusResponse{
|
2016-04-10 21:18:56 +00:00
|
|
|
Status: 1,
|
2016-04-10 21:14:44 +00:00
|
|
|
})
|
|
|
|
}
|