bigeasy / bigeasy/reactor

Undefined route handling

Open
#53 9 comments 0 reactions 1 assignee Claimed by @bigeasy View on GitHub
enhancement
Dominant language
JavaScript
Stars
4
Forks
0
PR merge metrics
No merged PRs in 30d

Description

If I make a request for a route that has not been defined, e.g. `GET /unknown`, I get a 404 response with `Cannot GET /unknown` but the request does not show up in the logs.

I would like to discuss the following additions:

1. Log undefined routes
2. Optionally define a custom handler for undefined routes (e.g. perhaps I want to return a JSON body instead of plain text)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.