Skip to content

Add GET /api/projects/:id endpoint with owner/admin active project handling#78

Merged
ayshadogo merged 3 commits into
Dfunder:mainfrom
codesailor4:feat/single
Jun 21, 2026
Merged

Add GET /api/projects/:id endpoint with owner/admin active project handling#78
ayshadogo merged 3 commits into
Dfunder:mainfrom
codesailor4:feat/single

Conversation

@codesailor4

Copy link
Copy Markdown
Contributor

Implements the requested single campaign endpoint and closes #75.\n\n- Added GET /api/projects/:id in src/routes/project.routes.js\n- Implemented getProjectDetails in src/controllers/project.controller.js\n- Added optional auth middleware in src/middlewares/auth.optional.js\n- Added status field to src/models/Project.model.js\n- Added route tests in src/tests/project.details.test.js\n\nReturns full project details for active projects, and returns 404 for inactive projects unless the requester is the owner or an admin.

@ayshadogo ayshadogo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ayshadogo ayshadogo merged commit 5d462fb into Dfunder:main Jun 21, 2026
1 check passed
@grantfox-oss grantfox-oss Bot mentioned this pull request Jun 21, 2026
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Get Single Project by ID (Public)

2 participants