fix: catch error when requesting a folder

This commit is contained in:
tdurieux
2024-05-03 10:49:25 +02:00
parent ca04339529
commit 93606a5c39
3 changed files with 7 additions and 18 deletions

View File

@@ -580,18 +580,7 @@ angular
$scope.$on("$routeUpdate", changedUrl);
},
])
.controller("faqController", [
"$scope",
"$http",
function ($scope, $http) {
function getSupportedFileTypes() {
$http.get("/api/supportedTypes").then((res) => {
$scope.supportedFileTypes = res.data;
});
}
getSupportedFileTypes();
},
])
.controller("faqController", ["$scope", "$http", function ($scope, $http) {}])
.controller("profileController", [
"$scope",
"$http",

File diff suppressed because one or more lines are too long