Browse Source

first touch for pages

master
gsd 2 weeks ago
parent
commit
4fdb903112
  1. 2
      src/main/java/app/controllers/FileController.java

2
src/main/java/app/controllers/FileController.java

@ -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();
}
}

Loading…
Cancel
Save