Implement /api/get_match (will return empty array, match data is currently not stored in ripple)
This commit is contained in:
parent
e043dd9cdf
commit
f7559e8cc5
13
app/peppy/match.go
Normal file
13
app/peppy/match.go
Normal 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{}{})
|
||||
}
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user