Skip to content

Feat/getall#82

Merged
ayshadogo merged 2 commits into
Dfunder:mainfrom
nafiuishaaq:feat/getall
Jun 23, 2026
Merged

Feat/getall#82
ayshadogo merged 2 commits into
Dfunder:mainfrom
nafiuishaaq:feat/getall

Conversation

@nafiuishaaq

Copy link
Copy Markdown
Contributor

✅ Completed

Implemented GET /api/projects with:

  • public access (no authentication required)
  • filtering by category
  • full-text search on title and description
  • pagination via page and limit
  • default sorting by createdAt descending
  • only active public campaigns returned (status: 'active' and isActive: true)
  • pagination metadata: total, page, limit, totalPages

Files updated

  • project.controller.js
  • project.routes.js
  • Project.model.js
  • project.routes.test.js

Validation

  • npx jest project.routes.test.js --runInBand
  • Result: 7 passed

If you want, I can also add a dedicated endpoint test for search + category with actual returned payload shape.

Made changes.

Closes #74

@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

Thank you for your contribution 🤝

@ayshadogo ayshadogo merged commit a1dd614 into Dfunder:main Jun 23, 2026
1 check passed
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 All Active Projects (Public, Paginated)

2 participants