talawa-api
talawa-api copied to clipboard
Resolving the bug-fix
Issue Number:
Fixes #2285
Did you add tests for your changes?
Not relevant
Snapshots/Videos:
None
If relevant, did you update the documentation?
Not relevant
Summary
This PR is in reference to a previously closed PR #2377.
Does this PR introduce a breaking change?
Other information
I highly apologize for the repetition and inconsistency of my previous few PRs in my last PR I made a mistake and merged the main branch into my own newly created branch, I tried reset using the commit hash but I couldn't find the commit hash locally in my terminal. I deeply regret any inconvenience this may have caused and am committed to resolving these issues promptly.
Have you read the contributing guide?
Yes
Summary by CodeRabbit
-
Bug Fixes
- Improved server initialization to dynamically capture and set the server host and port.
- Enhanced error handling for server port validation.
-
New Features
- Server and subscription endpoint URLs are now dynamically adjusted based on the request host, ensuring correct API root URL setup.