diff --git a/api/src/middleware/downloadFileLocal.ts b/api/src/middleware/downloadFileLocal.ts
index 390c01fe..e4f43a61 100644
--- a/api/src/middleware/downloadFileLocal.ts
+++ b/api/src/middleware/downloadFileLocal.ts
@@ -9,7 +9,6 @@ import prisma from '../prisma'
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export const downloadFileLocal: Middleware = async function (ctx, next) {
- // TODO: add authentication
const fileId = ctx.params.id
const file = await prisma.file.findFirst({
where: {
diff --git a/api/src/middleware/uploadFileLocal.ts b/api/src/middleware/uploadFileLocal.ts
index ce77783a..41c23cdb 100644
--- a/api/src/middleware/uploadFileLocal.ts
+++ b/api/src/middleware/uploadFileLocal.ts
@@ -8,8 +8,6 @@ import prisma from '../prisma'
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export const uploadFileLocal: Middleware = async function (ctx, next) {
- // TODO: add authentication
-
const fileId = ctx.params.id
const file = await prisma.file.findFirst({
where: {
diff --git a/frontend/src/helpers/handleUpload.ts b/frontend/src/helpers/handleUpload.ts
index c93045fb..13373a79 100644
--- a/frontend/src/helpers/handleUpload.ts
+++ b/frontend/src/helpers/handleUpload.ts
@@ -15,9 +15,6 @@ export const handleUpload = async (file: File) => {
if (dbFile.provider === 'LOCAL') {
const response = await fetch(`/api/upload/file/LOCAL/${dbFile.id}`, {
method: 'POST',
- headers: {
- // Authorization: 'Bearer ' + this.token, // TODO: authentication
- },
body: formData,
})
if (response.status != 201) throw new Error(`Failed to upload file: ${await response.text()}`)
diff --git a/frontend/src/views/Verwaltung/FileTest/FileList.vue b/frontend/src/views/Verwaltung/FileTest/FileList.vue
deleted file mode 100644
index ca5c6967..00000000
--- a/frontend/src/views/Verwaltung/FileTest/FileList.vue
+++ /dev/null
@@ -1,42 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/frontend/src/views/Verwaltung/FileTest/routes.ts b/frontend/src/views/Verwaltung/FileTest/routes.ts
deleted file mode 100644
index 32dc3a82..00000000
--- a/frontend/src/views/Verwaltung/FileTest/routes.ts
+++ /dev/null
@@ -1,32 +0,0 @@
-import type { Route } from '@/router'
-
-const fileRoutes: Route[] = [
- {
- name: 'Verwaltung File',
- path: 'file',
- redirect: { name: 'Verwaltung Alle File' },
- meta: {
- breadcrumbs: [
- {
- text: 'File',
- },
- ],
- },
- children: [
- {
- name: 'Verwaltung Alle File',
- path: 'liste',
- component: () => import('./FileList.vue'),
- meta: {
- breadcrumbs: [
- {
- text: 'Übersicht',
- },
- ],
- },
- },
- ],
- },
-]
-
-export default fileRoutes
diff --git a/frontend/src/views/Verwaltung/routes.ts b/frontend/src/views/Verwaltung/routes.ts
index 5e2154ef..747bf38f 100644
--- a/frontend/src/views/Verwaltung/routes.ts
+++ b/frontend/src/views/Verwaltung/routes.ts
@@ -1,5 +1,4 @@
import routesAccount from './Accounts/routes'
-import fileRoutes from './FileTest/routes'
import gliederungRoutes from './Gliederungen/routes'
import orteRoutes from './Orte/routes'
import routesPerson from './Persons/routes'
@@ -25,7 +24,6 @@ const routesVerwaltung: Route[] = [
...veranstaltungRoutes,
...orteRoutes,
...routesAccount,
- ...fileRoutes,
],
},
]