-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor URL routing in src/index.ts
URL routing in src/index.ts has been updated to improve error handling and readability. This includes segregating the validation checks into more granular checks; differentiating 'server' routes first, and then 'room' routes, allowing for more specific error messages and status codes. This also incorporates a 404 status response for invalid server routes and improves logging for missing username headers. These changes should enhance user feedback and ease future development.
- Loading branch information
Showing
1 changed file
with
25 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters