Fix backend API address
This commit is contained in:
parent
5d25d05a2a
commit
49d159306b
2
static/config.js
Normal file
2
static/config.js
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
config = 'prod'
|
||||||
|
// config = 'dev'
|
@ -12,6 +12,7 @@
|
|||||||
<!-- Compiled and minified JavaScript -->
|
<!-- Compiled and minified JavaScript -->
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
|
<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>
|
<script src="zetikettes.js"></script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
const backend_api = '/zetikettes/srv/';
|
const backend_api = {
|
||||||
|
'prod': '/zetikettes/srv/',
|
||||||
|
'dev': '/zetikettes.dev/srv/',
|
||||||
|
}[config];
|
||||||
|
|
||||||
const zetikettes = [
|
const zetikettes = [
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user