patch no image data

This commit is contained in:
jleroy
2024-05-02 13:34:55 +02:00
parent 53d7fe5a80
commit 74cbd3c073
4 changed files with 10 additions and 4806 deletions

View File

@@ -1,12 +1,18 @@
package fr.eni.enchere.bll;
import org.springframework.stereotype.Service;
import java.nio.file.Files;
import java.nio.file.Paths;
@Service
public class FileService {
public boolean fileExists(String filePath) {
return Files.exists(Paths.get(filePath));
return Files.exists(Paths.get("src/main/resources/static"+filePath));
}
}
// src/main/resources/static/images/articles/12.jpg