diff --git a/router/init.go b/router/init.go index 03fa149..1a50d90 100644 --- a/router/init.go +++ b/router/init.go @@ -80,6 +80,7 @@ func InitRouters(router *gin.Engine, db *gorm.DB, meta *ServerMeta, smtpCfg *ser minecraftservices := router.Group("/minecraftservices") { minecraftservices.GET("/player/attributes", userRouter.PlayerAttributes) + minecraftservices.GET("/privacy/blocklist", userRouter.PlayerBlockList) minecraftservices.POST("/player/certificates", userRouter.ProfileKey) minecraftservices.GET("/publickeys", homeRouter.PublicKeys) minecraftservices.GET("/minecraft/profile/lookup/:uuid", userRouter.UUIDToUUID) diff --git a/router/user_router.go b/router/user_router.go index c244da2..39601ac 100644 --- a/router/user_router.go +++ b/router/user_router.go @@ -39,6 +39,7 @@ type UserRouter interface { QueryUUIDs(c *gin.Context) QueryProfile(c *gin.Context) PlayerAttributes(c *gin.Context) + PlayerBlockList(c *gin.Context) ProfileKey(c *gin.Context) SendEmail(c *gin.Context) VerifyEmail(c *gin.Context) @@ -315,6 +316,12 @@ func (u *userRouterImpl) PlayerAttributes(c *gin.Context) { }) } +func (u *userRouterImpl) PlayerBlockList(c *gin.Context) { + c.JSON(http.StatusOK, gin.H{ + "blockedProfiles": []string{}, + }) +} + func (u *userRouterImpl) ProfileKey(c *gin.Context) { bearerToken := c.GetHeader("Authorization") if len(bearerToken) < 8 {