Replies: 1 comment 1 reply
-
|
Hey @maicss, thanks for raising this. Currently, we don’t have a way to get the const baseUrl = bru.getCollectionVar('baseUrl');
// Call your API
const response = await bru.sendRequest({
method: 'GET',
url: `${baseUrl}`
});
console.log(response);Will this help? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Before each request, I need call an API.
I set an Url to the
Collenction/settings/presets/Base Url, and then write a pre-script of the collection, how can I get the base url in the script?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions