posva / mande

<700 bytes convenient and modern wrapper around fetch with smart extensible defaults
https://mande.esm.is
MIT License
1.19k stars 42 forks source link

How do I set base url? #352

Closed phillipstemann closed 1 year ago

phillipstemann commented 1 year ago

Hi, I'm playing around with mande and pinia.

How do I set the base URL once? My base URL differs from where my front-end will be.

posva commented 1 year ago
mande('https://...')
phillipstemann commented 1 year ago

Okay, so there is no way to set it globally? Like: mande.settings.base_url = 'https://api.api';

For instance?