make api urls relative, so they can work then being reverse proxied

for #5, found by belst
This commit is contained in:
Mechiel Lukkien 2023-02-25 10:55:30 +01:00
parent b1dcd73ebe
commit ac3a3e496e
No known key found for this signature in database
2 changed files with 2 additions and 0 deletions

View file

@ -24,6 +24,7 @@ fieldset { border: 0; }
@keyframes fadeout { 0% { opacity: 1 } 100% { opacity: 0.1 } }
</style>
<script src="api/sherpa.js"></script>
<script>api._sherpa.baseurl = 'api/'</script>
</head>
<body>
<div id="page">Loading...</div>

View file

@ -24,6 +24,7 @@ fieldset { border: 0; }
@keyframes fadeout { 0% { opacity: 1 } 100% { opacity: 0.1 } }
</style>
<script src="api/sherpa.js"></script>
<script>api._sherpa.baseurl = 'api/'</script>
</head>
<body>
<div id="page">Loading...</div>