diff --git a/handler/allstars.go b/handler/allstars.go index 42d8110..40164c9 100644 --- a/handler/allstars.go +++ b/handler/allstars.go @@ -1062,3 +1062,10 @@ func AsFetchTrainingTree(ctx *gin.Context) { ctx.Header("Content-Type", "application/json") ctx.String(http.StatusOK, resp) } + +func AsUpdatePushNotificationSettings(ctx *gin.Context) { + resp := SignResp(ctx.GetString("ep"), "{}", sessionKey) + + ctx.Header("Content-Type", "application/json") + ctx.String(http.StatusOK, resp) +} diff --git a/router/router.go b/router/router.go index f0edddd..0232989 100644 --- a/router/router.go +++ b/router/router.go @@ -177,5 +177,6 @@ func AsRouter(r *gin.Engine) { s.POST("/story/finishUserStoryMain", handler.AsFinishStoryMain) s.POST("/story/finishStoryLinkage", handler.AsFinishStoryLinkage) s.POST("/trainingTree/fetchTrainingTree", handler.AsFetchTrainingTree) + s.POST("/gameSettings/updatePushNotificationSettings", handler.AsUpdatePushNotificationSettings) } }