diff --git a/backend/src/models/file.ts b/backend/src/models/file.ts index fc4476f..c3b4806 100644 --- a/backend/src/models/file.ts +++ b/backend/src/models/file.ts @@ -1,8 +1,8 @@ import mongoose from 'mongoose'; const schema = new mongoose.Schema({ - bucket: String, filepath: String, + link: String, title: String, description: String, published: Date, diff --git a/backend/src/resources/files.ts b/backend/src/resources/files.ts index 18aac0a..c90863d 100644 --- a/backend/src/resources/files.ts +++ b/backend/src/resources/files.ts @@ -14,6 +14,9 @@ export const files = { resource: File, options: { properties: { + link: { + type: 'string', + }, title: { type: 'string', },