Skip to content

[BE-37] Add document download endpoint with access logging #363

@mftee

Description

@mftee

Overview

Serve original document files to authorized users and log every download for audit purposes inside backend/cmmty/.

Acceptance Criteria

  • Create backend/cmmty/document-download/ with module, controller, and service
  • Implement GET /cmmty/documents/:id/download protected by JWT guard
  • Verify caller is owner or has share permission before serving file
  • Log each download: who, when, and from which IP
  • Set correct Content-Disposition and Content-Type headers
  • Write unit tests for access control and download logging

Contribution Folder

All files must be placed inside backend/cmmty/. Do not modify any file outside this folder.

How to Contribute

Comment on this issue to express interest, fork the repo, build inside backend/cmmty/ only, and open a PR targeting main.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions