add API endpoint to retrieve user achievements

This commit is contained in:
Morgan Bazalgette
2018-01-21 21:21:46 +01:00
parent 39078d00a3
commit a1eb970382
3 changed files with 93 additions and 0 deletions

View File

@@ -77,6 +77,11 @@ func WSErr(err error) {
}, nil, nil)
}
// GenericError is just an error. Can't make a good description.
func GenericError(err error) {
_err(err, nil, nil, nil)
}
func _err(err error, tags map[string]string, user *raven.User, c *fasthttp.RequestCtx) {
if RavenClient == nil {
fmt.Println("ERROR!!!!")