Small fixes
This commit is contained in:
@@ -78,6 +78,7 @@ public class FileInfoService {
|
|||||||
String requestedUri, FileTokenProvider fileTokenProvider) {
|
String requestedUri, FileTokenProvider fileTokenProvider) {
|
||||||
Path rootFolderPath = Paths.get(fileApiConfiguration.directory());
|
Path rootFolderPath = Paths.get(fileApiConfiguration.directory());
|
||||||
Path path = null;
|
Path path = null;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
path = rootFolderPath.resolve("file").resolve(requestedPath.replaceAll("^/*", ""));
|
path = rootFolderPath.resolve("file").resolve(requestedPath.replaceAll("^/*", ""));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|||||||
@@ -24,6 +24,10 @@ quarkus:
|
|||||||
token:
|
token:
|
||||||
refresh-expired: true
|
refresh-expired: true
|
||||||
|
|
||||||
|
# lalafin:
|
||||||
|
# base_url: <url>
|
||||||
|
# user_management_url: <url>
|
||||||
|
|
||||||
api:
|
api:
|
||||||
file:
|
file:
|
||||||
directory: /lalafin # Files need to be in {directory}/file
|
directory: /lalafin # Files need to be in {directory}/file
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
{#if it_count.mod(3) == 1}
|
{#if it_count.mod(3) == 1}
|
||||||
<tr>
|
<tr>
|
||||||
{/if}
|
{/if}
|
||||||
<td>
|
<td valign="top">
|
||||||
{#if it.thumbnailUrl}
|
{#if it.thumbnailUrl}
|
||||||
{#if it.type is 'file'}
|
{#if it.type is 'file'}
|
||||||
{#if it.viewUrl}
|
{#if it.viewUrl}
|
||||||
|
|||||||
Reference in New Issue
Block a user