2016-04-10 21:14:44 +00:00
|
|
|
// Package internals has methods that suit none of the API packages.
|
|
|
|
package internals
|
|
|
|
|
2017-02-02 12:40:28 +00:00
|
|
|
import "github.com/valyala/fasthttp"
|
2016-04-10 21:14:44 +00:00
|
|
|
|
2017-02-02 12:40:28 +00:00
|
|
|
var statusResp = []byte(`{ "status": 1 }`)
|
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.
|
2017-02-02 12:40:28 +00:00
|
|
|
func Status(c *fasthttp.RequestCtx) {
|
|
|
|
c.Write(statusResp)
|
2016-04-10 21:14:44 +00:00
|
|
|
}
|