Fix default message when there's no API key pointing to wrong method
This commit is contained in:
parent
98137678eb
commit
98c8206946
|
@ -91,7 +91,7 @@ type pingData struct {
|
|||
func PingGET(md common.MethodData) (r common.Response) {
|
||||
r.Code = 200
|
||||
if md.ID() == 0 {
|
||||
r.Message = "You have not given us a token, so we don't know who you are! But you can still login with /api/v1/login " + kaomojis[rn.Intn(len(kaomojis))]
|
||||
r.Message = "You have not given us a token, so we don't know who you are! But you can still login with /api/v1/tokens/new " + kaomojis[rn.Intn(len(kaomojis))]
|
||||
} else {
|
||||
r.Message = surpriseMe()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user