Skip to content

feat: add default 404 handler to generated backend#63

Open
Aditya2274 wants to merge 1 commit intoPranavBarthwal:mainfrom
Aditya2274:feat/add-404-handler
Open

feat: add default 404 handler to generated backend#63
Aditya2274 wants to merge 1 commit intoPranavBarthwal:mainfrom
Aditya2274:feat/add-404-handler

Conversation

@Aditya2274
Copy link
Copy Markdown

This PR adds a default 404 handler to the generated Express backend.

Changes:

  • Added a reusable notFound middleware
  • Returns a friendly JSON response for unknown routes
  • Wired the middleware into app.js after all routes

This improves developer experience by providing a consistent response
instead of a blank page or generic server error.

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