web-library
web-library copied to clipboard
Configure path prefix for the API server
(I've split this from another issue, as it pertains to configuring the API server and not the web library's routing.)
Dear @glorieux-f and @tnajdek,
I run into a similar problem: the current zotero-webapp implementation allows to configure the apiAuthorityPart in index.html, like below. But how is it possible to change the API path of the API server ? So, e.g., in the case of @glorieux-f , how would I set https://www.unige.ch/piaget/api/ as the route to the zotero API endpoint ? (We do not want to set up a second domain, just for the zotero server).
Thanks and merci !
<script type="application/json" id="zotero-web-library-config">
{
"userSlug": "zotero-user",
"userId": "475425",
"apiConfig": {
"apiAuthorityPart": "api.zotero.org"
},
"libraries": {
"include": [
{
"key": "g729",
"name": "All Things Zotero",
"isGroupLibrary": true
}
],
"includeMyLibrary": true,
"includeUserGroups": false
}
}
</script>
Originally posted by @markdoerr in https://github.com/zotero/web-library/issues/534#issuecomment-2286432956