Override default config #32
-
Hello , I am using this library with axios client, I want to use the i tried something like the following:
However I realized the second param has to be path template relative to a base url and not an absolute path. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi Rachit! You should be able to use an absolute URL in
|
Beta Was this translation helpful? Give feedback.
-
Thanks. Should have looked at the src. Thank you again for this helpful
library.
…On Mon, Jul 25, 2022 at 10:12 PM Máximo Mussini ***@***.***> wrote:
Hi Rachit!
You should be able to use an absolute URL in definePathHelper.
formatUrl will avoid prepending the base
<https://github.com/ElMassimo/js_from_routes/blob/main/packages/client/src/api.ts#L31>
if the provided path is not relative.
—
Reply to this email directly, view it on GitHub
<#32 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AALH63353K6MCGO2QRUTB5LVV5CRXANCNFSM54UHQJAQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
Hi Rachit!
You should be able to use an absolute URL in
definePathHelper
.formatUrl
will avoid prepending the configured base if the provided path is not relative.