as: Fix notification push settings
Signed-off-by: Yuan Si <do4suki@gmail.com>
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user