|
|
|
|
@ -62,7 +62,7 @@ public class FileModule extends BaseHandler implements FileService {
@@ -62,7 +62,7 @@ public class FileModule extends BaseHandler implements FileService {
|
|
|
|
|
case COMPANY -> getCompanyFiles(path, ex, user.get()); |
|
|
|
|
case PROJECT -> getProjectFiles(path, ex, user.get()); |
|
|
|
|
case USER -> getUserFiles(path, ex, user.get()); |
|
|
|
|
case null, default -> super.doGet(path,ex); |
|
|
|
|
case null, default -> throw UmbrellaException.notFound("invalid location: {0}", head); |
|
|
|
|
}; |
|
|
|
|
} catch (UmbrellaException e) { |
|
|
|
|
return send(ex,e); |
|
|
|
|
|