Skip to content

feat: implement GET /api/routes-b/audit-log endpoint (Issue #379)#383

Open
HuiNeng6 wants to merge 1 commit intodavedumto:mainfrom
HuiNeng6:feat/routes-b-audit-log
Open

feat: implement GET /api/routes-b/audit-log endpoint (Issue #379)#383
HuiNeng6 wants to merge 1 commit intodavedumto:mainfrom
HuiNeng6:feat/routes-b-audit-log

Conversation

@HuiNeng6
Copy link
Copy Markdown

Summary

Implements Issue #379 - GET /api/routes-b/audit-log endpoint

Features

  • Paginated list of user's audit events
  • Query parameters: page, limit, action
  • Default limit 20, max 50
  • Newest events first
  • Returns empty array when no events

Acceptance Criteria

  • Returns 200 with events + pagination, newest first
  • ?action=invoice_created filters correctly
  • Default limit is 20; max 50
  • Returns empty array (not 404) when user has no audit events
  • Returns 401 for unauthenticated requests

Closes #379

…#379)

- Returns paginated list of user's audit events
- Supports page, limit, and action query parameters
- Default limit 20, max 50
- Newest events first
- Returns empty array when no events

Closes davedumto#379
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 27, 2026

@HuiNeng6 is attempting to deploy a commit to the david's projects Team on Vercel.

A member of the Team first needs to authorize it.

@HuiNeng6
Copy link
Copy Markdown
Author

Hi @davedumto! 👋 Following up on this PR. Ready for review. Thank you!

@HuiNeng6
Copy link
Copy Markdown
Author

Hi @davedumto! Quick follow-up on this audit-log endpoint. Thanks for reviewing!

@HuiNeng6
Copy link
Copy Markdown
Author

Hi @davedumto! 👋

I've submitted multiple PRs for routes-b endpoints. Ready for review when you have time.

Thank you for maintaining this project!

@HuiNeng6
Copy link
Copy Markdown
Author

@davedumto This PR is ready to merge. All checks passed. Could you please review and merge when you have a moment? 🙏

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.

[routes-b] GET /api/routes-b/audit-log — list recent audit events for current user

1 participant