feat: add avatar cropping with Cropper.js and server-side resize

This commit is contained in:
2026-06-21 02:30:35 +08:00
parent 610ea643ff
commit 67023378ce
7 changed files with 270 additions and 7 deletions
+1
View File
@@ -64,6 +64,7 @@ func main() {
{
profile.GET("", handlers.ProfilePage(db))
profile.POST("", handlers.UpdateProfile(db, cfg.Path))
profile.POST("/avatar", handlers.UploadAvatar(db, cfg.Path))
}
// 9. Start the server.