Skip to content

Commit

Permalink
remove todo + remove file-test
Browse files Browse the repository at this point in the history
  • Loading branch information
supermomme committed Nov 18, 2024
1 parent f6adb63 commit f4fc608
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 82 deletions.
1 change: 0 additions & 1 deletion api/src/middleware/downloadFileLocal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
2 changes: 0 additions & 2 deletions api/src/middleware/uploadFileLocal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
3 changes: 0 additions & 3 deletions frontend/src/helpers/handleUpload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()}`)
Expand Down
42 changes: 0 additions & 42 deletions frontend/src/views/Verwaltung/FileTest/FileList.vue

This file was deleted.

32 changes: 0 additions & 32 deletions frontend/src/views/Verwaltung/FileTest/routes.ts

This file was deleted.

2 changes: 0 additions & 2 deletions frontend/src/views/Verwaltung/routes.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -25,7 +24,6 @@ const routesVerwaltung: Route[] = [
...veranstaltungRoutes,
...orteRoutes,
...routesAccount,
...fileRoutes,
],
},
]
Expand Down

0 comments on commit f4fc608

Please sign in to comment.