Fix backend API address

This commit is contained in:
Paul Mathieu 2022-07-26 16:24:27 +02:00
parent 5d25d05a2a
commit 49d159306b
3 changed files with 7 additions and 1 deletions

2
static/config.js Normal file
View File

@ -0,0 +1,2 @@
config = 'prod'
// config = 'dev'

View File

@ -12,6 +12,7 @@
<!-- Compiled and minified JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
<script src="config.js"></script>
<script src="zetikettes.js"></script>
<style>

View File

@ -1,4 +1,7 @@
const backend_api = '/zetikettes/srv/';
const backend_api = {
'prod': '/zetikettes/srv/',
'dev': '/zetikettes.dev/srv/',
}[config];
const zetikettes = [
{