-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix serverurl in openapi docs for self hosted instance #4390
fix serverurl in openapi docs for self hosted instance #4390
Conversation
TODOs/FIXMEs:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution, just a minor comment !
const baseUrl = | ||
this.environmentService.getServerUrl() || | ||
`${request.protocol}://${request.get('host')}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@brendanlaschke To avoid declaration of this 2 times, we can create a private function that compute the baseUrl
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we also remove the trailing slash in case it's present, tested this morning and:
SERVER_URL=https://api.twenty.com works
SERVER_URL=https://api.twenty.com/ does not
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor change required
…ed openapi path hardcoded api.twenty.com
should be fixed :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
closes #4070