Skip to content

Commit

Permalink
Added a link to the file resource.
Browse files Browse the repository at this point in the history
  • Loading branch information
mitkonikov committed Feb 9, 2024
1 parent 4d0539a commit 142571e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/models/file.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
3 changes: 3 additions & 0 deletions backend/src/resources/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ export const files = {
resource: File,
options: {
properties: {
link: {
type: 'string',
},
title: {
type: 'string',
},
Expand Down

0 comments on commit 142571e

Please sign in to comment.