Add GET /api/status for Ripple's status page.
This commit is contained in:
17
app/internals/status.go
Normal file
17
app/internals/status.go
Normal file
@@ -0,0 +1,17 @@
|
||||
// Package internals has methods that suit none of the API packages.
|
||||
package internals
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
type statusResponse struct {
|
||||
Response int `json:"response"`
|
||||
}
|
||||
|
||||
// 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{
|
||||
Response: 1,
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user