diff --git a/app/peppy/match.go b/app/peppy/match.go new file mode 100644 index 0000000..b6fae96 --- /dev/null +++ b/app/peppy/match.go @@ -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{}{}) +} diff --git a/app/start.go b/app/start.go index ddc5474..d99c6cc 100644 --- a/app/start.go +++ b/app/start.go @@ -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)