From be866a3e66df3d93d72944c61abd9cbe7a45a892 Mon Sep 17 00:00:00 2001 From: valitovgaziz Date: Mon, 13 Oct 2025 05:18:18 +0500 Subject: [PATCH] modified: serv_nginx/api_bb/internal/routes/routes.go change serve static files --- serv_nginx/api_bb/internal/routes/routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serv_nginx/api_bb/internal/routes/routes.go b/serv_nginx/api_bb/internal/routes/routes.go index 6dbbf22..bab4beb 100644 --- a/serv_nginx/api_bb/internal/routes/routes.go +++ b/serv_nginx/api_bb/internal/routes/routes.go @@ -25,7 +25,7 @@ func SetupRouter(db *gorm.DB, config *config.Config) http.Handler { // Serve static files (avatars) - ДОБАВЬТЕ ЭТО r.Handle("/uploads/*", http.StripPrefix("/uploads/", - http.FileServer(http.Dir("/app/uploads")))) + http.FileServer(http.Dir("./uploads")))) // Initialize repositories userRepo := repository.NewUserRepository(db)