Implement /api/get_match (will return empty array, match data is currently not stored in ripple)

This commit is contained in:
Howl 2016-05-15 14:04:59 +02:00
parent e043dd9cdf
commit f7559e8cc5
2 changed files with 14 additions and 0 deletions

13
app/peppy/match.go Normal file
View File

@ -0,0 +1,13 @@
// Package peppy implements the osu! API as defined on the osu-api repository wiki (https://github.com/ppy/osu-api/wiki).
package peppy
import (
"database/sql"
"github.com/gin-gonic/gin"
)
// GetMatch retrieves general match information.
func GetMatch(c *gin.Context, db *sql.DB) {
c.JSON(200, []struct{}{})
}

View File

@ -67,6 +67,7 @@ func Start(conf common.Conf, dbO *sql.DB) *gin.Engine {
// peppyapi
api.GET("/get_user", PeppyMethod(peppy.GetUser))
api.GET("/get_match", PeppyMethod(peppy.GetMatch))
}
r.NoRoute(v1.Handle404)