Skip to content

Add function to build the url for each request #5

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

Merged
merged 2 commits into from
Jun 17, 2024

Conversation

alonsourena
Copy link
Contributor

Added a new getUrl function to build the url in an easy and reusable way.

I take the inspiration from the medusajs repo.

Here's the file where this function is located on the medusajs repo
https://github.com/medusajs/medusa/blob/develop/packages/admin-next/dashboard/src/lib/client/common.ts

Copy link

vercel bot commented Jun 16, 2024

@alonsourena is attempting to deploy a commit to the 9d8 Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor

@youngbloodcyb youngbloodcyb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm - i really like this approach and i think it cleans it up a ton

@brijr wanna take a quick peak before we merge?

@youngbloodcyb youngbloodcyb requested a review from brijr June 17, 2024 15:24
Copy link
Collaborator

@brijr brijr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! LFG

@brijr brijr merged commit 6d76499 into 9d8dev:main Jun 17, 2024
1 check failed
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.

3 participants