Skip to content

Conversation

Copy link

Copilot AI commented Dec 4, 2025

Implements a minimal user feedback system with REST endpoints for submitting and retrieving feedback.

Changes

  • feedbackHandler.js (new): Added POST /feedback and GET /feedback endpoints

    • In-memory storage with monotonic ID generation
    • Required message field, optional email field
    • Returns 201 on success, 400 on validation failure
  • patchHandler.js: Fixed undefined asdasd() call causing crashes

    • Now returns proper response on PATCH requests
  • index.js: Mounted feedback handler on root path

Usage

# Submit feedback
curl -X POST http://localhost:7000/feedback \
  -H "Content-Type: application/json" \
  -d '{"message": "Great app!", "email": "user@example.com"}'

# Retrieve all feedback
curl http://localhost:7000/feedback
Original prompt

hello

Created from VS Code.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits December 4, 2025 16:06
Co-authored-by: osortega <48293249+osortega@users.noreply.github.com>
Co-authored-by: osortega <48293249+osortega@users.noreply.github.com>
Copilot AI changed the title [WIP] Add user feedback feature to website Add user feedback endpoints and fix patchHandler bug Dec 4, 2025
Copilot AI requested a review from osortega December 4, 2025 16:12
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.

2 participants