23 lines
409 B
Go
23 lines
409 B
Go
package v1
|
|
|
|
import (
|
|
"git.zxq.co/ripple/rippleapi/common"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
type response404 struct {
|
|
common.ResponseBase
|
|
Cats string `json:"cats"`
|
|
}
|
|
|
|
// Handle404 handles requests with no implemented handlers.
|
|
func Handle404(c *gin.Context) {
|
|
c.Header("X-Real-404", "yes")
|
|
c.IndentedJSON(404, response404{
|
|
ResponseBase: common.ResponseBase{
|
|
Code: 404,
|
|
},
|
|
Cats: surpriseMe(),
|
|
})
|
|
}
|