Add notification settings, account deletion, photo reporting, and pending-user photos
Addresses user bug reports: settings pages needed real notification preferences and account deletion, admin needed a way to flag a specific photo independent of deleting it, and the pending-approval users list needed to surface applicant photos for review. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -61,6 +61,8 @@ func Setup(
|
||||
profile.PATCH("/bio", h.Profile.UpdateBio)
|
||||
// استریک روزانه (گیمیفیکیشن): هر بار اپ باز میشه یه بار صدا زده میشه
|
||||
profile.POST("/checkin", h.Profile.CheckIn)
|
||||
profile.PATCH("/notifications", h.Profile.UpdateNotificationSettings)
|
||||
profile.DELETE("/me", h.Profile.DeleteAccount)
|
||||
}
|
||||
|
||||
// -------- آنبوردینگ (نیاز به ورود) --------
|
||||
@@ -115,6 +117,7 @@ func Setup(
|
||||
// نظارت بر عکسهای آپلودشده
|
||||
admin.GET("/photos", h.Admin.ListAllPhotos)
|
||||
admin.DELETE("/photos/:id", h.Admin.DeletePhoto)
|
||||
admin.POST("/photos/:id/report", h.Admin.ReportPhoto)
|
||||
|
||||
admin.GET("/categories/:key", h.Admin.GetCategory)
|
||||
admin.PATCH("/categories/:key", h.Admin.UpdateCategory)
|
||||
|
||||
Reference in New Issue
Block a user