Skip to content
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

Fixed 3 places where API URLs were not constructed by function route #451

Merged
merged 2 commits into from
Jul 23, 2023

Conversation

db8200
Copy link
Contributor

@db8200 db8200 commented May 14, 2023

What type of PR is this?

  • Fix

What this PR does / why we need it:

  • When assembling a URL to connect to the API, the route function has to be called. This way, there is only one place where API host and API prefix are written in the code.
  • A few typos were corrected.

Testing

  • I checked that the API server was correctly responding when setting a different host name, specifically for the 3 places where I changed the URL construction (label generator, QR code and attachments).

Release Notes

API host can now be changed at a single place: frontend/lib/api/base/urls.ts

@hay-kot hay-kot merged commit 06eb6c1 into hay-kot:main Jul 23, 2023
3 checks passed
hay-kot added a commit that referenced this pull request Jan 28, 2024
)

* Fixed 3 places where API URLs were not constructed by function route(path, params).

* autofix

---------

Co-authored-by: Hayden <64056131+hay-kot@users.noreply.github.com>
Former-commit-id: 06eb6c1
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.

None yet

2 participants