1
0

Make api url configurable in index.html

This commit is contained in:
kolaente
2020-05-05 22:44:58 +02:00
parent 1bad154da6
commit d46faec23d
7 changed files with 17 additions and 15 deletions

View File

@ -1,3 +0,0 @@
{
"VIKUNJA_API_BASE_URL": "http://localhost:8080/api/v1/"
}

View File

@ -25,5 +25,13 @@
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
<script>
//
// This variable points the frontend to the api.
// It has to be the full url, including the last /api/v1 part and port.
// You can change this if your api is not reachable on the same port as the frontend.
window.API_URL = 'http://localhost:8080/api/v1'
//
</script>
</body>
</html>