Skip to content

London | 26-SDC-July | Raihan Sharif | Sprint 3 | Middleware exercises - #128

Open
RaihanSharif wants to merge 53 commits into
CodeYourFuture:mainfrom
RaihanSharif:middleware
Open

RaihanSharif wants to merge 53 commits into
CodeYourFuture:mainfrom
RaihanSharif:middleware

Conversation

@RaihanSharif

Copy link
Copy Markdown

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Task code

CYF-1165

Changelist

First write custom middleware for processing username and request body. Then use built-in body parsers. Explain why the request has to change when using built-in middleware.

Can post message, with validation.
Can get all messages.
Only return list of messages, or a single message.

Clean up js doc
Messages can now be fetched or created using REST API.

Client can then fetch subsequent messages using event streaming.
create new message handling function.
... but don't add to local messages map. That will be done by the event polling.
@RaihanSharif RaihanSharif added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant