modified: serv_nginx/api_bb/internal/routes/routes.go
change serve static files
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user