|
|
@ -139,6 +139,7 @@ public class FileController { |
|
|
|
DbFile dbFile = fileRepository.getDbFilesByTag(tags); |
|
|
|
if (dbFile == null) |
|
|
|
throw new RuntimeException("Cannot find: " + tags); |
|
|
|
logger.info("Search {} end with success", tags); |
|
|
|
return endpoint+"/"+dbFile.getId(); |
|
|
|
} |
|
|
|
|
|
|
@ -147,6 +148,7 @@ public class FileController { |
|
|
|
DbFile dbFile = fileRepository.getDbFileByFilenameAndTag(filename + ".%", tag); |
|
|
|
if (dbFile == null) |
|
|
|
throw new RuntimeException("Cannot find: " + filename); |
|
|
|
logger.info("Search {} with tag: {} end with success", filename, tag); |
|
|
|
return endpoint+"/"+dbFile.getId(); |
|
|
|
} |
|
|
|
} |
|
|
|