diff --git a/packages/endpoint-files/index.js b/packages/endpoint-files/index.js index 8eb70f37f..f2e682922 100644 --- a/packages/endpoint-files/index.js +++ b/packages/endpoint-files/index.js @@ -1,3 +1,4 @@ +import path from "node:path"; import express from "express"; import { deleteController } from "./lib/controllers/delete.js"; import { fileController } from "./lib/controllers/file.js"; @@ -24,6 +25,14 @@ export default class FilesEndpoint { }; } + get shortcutItems() { + return { + url: path.join(this.options.mountPath, "upload"), + name: "files.upload.action", + requiresDatabase: true, + }; + } + get routes() { router.get("/", filesController);