Skip to content

feat(loans): offer API routes and domain validation - #399

Merged
catomean merged 1 commit into
mainfrom
feat/loan-offers-api
Jul 9, 2026
Merged

feat(loans): offer API routes and domain validation#399
catomean merged 1 commit into
mainfrom
feat/loan-offers-api

Conversation

@catomean

@catomean catomean commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add internal /api/loans/offers routes for create, update, and borrower response flows
  • move loan offer mutations onto API client calls with domain-side validation for active loans, self-offers, and minimum offer amounts
  • update loans docs so the full loans write path is API-first

Test plan

  • node scripts/docs-slop-scan.js
  • npm run type-check
  • npm test -- --testPathPatterns=__tests__/unit

Made with Cursor

Moves loan offer create, update, and borrower response flows behind
internal /api/loans/offers handlers so the entire loans write path now
runs through API and domain validation instead of browser Supabase calls.

Co-authored-by: Cursor <cursoragent@cursor.com>
@catomean
catomean merged commit c9ffae2 into main Jul 9, 2026
5 of 6 checks passed
@catomean
catomean deleted the feat/loan-offers-api branch July 9, 2026 07:50
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.

1 participant