add reading settings sync
This commit is contained in:
@@ -485,6 +485,12 @@ func (s *Server) setupRouter() {
|
||||
r.Use(middleware.RequireAuth(s.authIssuer, s.userRepo))
|
||||
r.Patch("/me", s.userH.UpdateProfile)
|
||||
r.Post("/me/avatar-presign", s.userH.AvatarPresign)
|
||||
// Reading prefs roam with the account so theme/palette/
|
||||
// font picks follow the user across devices. Body shape
|
||||
// is owned by the frontend; the server treats it as an
|
||||
// opaque JSON object.
|
||||
r.Get("/me/reading-prefs", s.userH.GetReadingPrefs)
|
||||
r.Put("/me/reading-prefs", s.userH.UpdateReadingPrefs)
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user