Skip to content

Commit

Permalink
feat(endpoint-files): add web app shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Mar 25, 2024
1 parent 02b3a8d commit 80fe919
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/endpoint-files/index.js
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -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);

Expand Down

0 comments on commit 80fe919

Please sign in to comment.