Rename quite a few methods
This commit is contained in:
@@ -90,7 +90,7 @@ func Start(conf common.Conf, dbO *sqlx.DB) *gin.Engine {
|
||||
{
|
||||
gv1.POST("/tokens", Method(v1.TokenNewPOST))
|
||||
gv1.POST("/tokens/new", Method(v1.TokenNewPOST))
|
||||
gv1.POST("/tokens/self/delete", Method(v1.TokenSelfDeleteGET))
|
||||
gv1.POST("/tokens/self/delete", Method(v1.TokenSelfDeletePOST))
|
||||
|
||||
// Auth-free API endpoints (public data)
|
||||
gv1.GET("/ping", Method(v1.PingGET))
|
||||
@@ -147,7 +147,7 @@ func Start(conf common.Conf, dbO *sqlx.DB) *gin.Engine {
|
||||
gv1.GET("/meta/update", Method(v1.MetaUpdateGET, common.PrivilegeAPIMeta))
|
||||
|
||||
// User Managing + meta
|
||||
gv1.GET("/tokens/fix_privileges", Method(v1.TokenFixPrivilegesGET,
|
||||
gv1.POST("/tokens/fix_privileges", Method(v1.TokenFixPrivilegesPOST,
|
||||
common.PrivilegeManageUser, common.PrivilegeAPIMeta))
|
||||
|
||||
// in the new osu-web, the old endpoints are also in /v1 it seems. So /shrug
|
||||
|
Reference in New Issue
Block a user