Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9a906ec55c |
2
main.go
2
main.go
@@ -119,7 +119,7 @@ func helpHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
<script>
|
<script>
|
||||||
// Dynamisch den aktuellen Hostnamen ermitteln
|
// Dynamisch den aktuellen Hostnamen ermitteln
|
||||||
const currentHost = window.location.host;
|
const currentHost = window.location.host;
|
||||||
const apiEndpoint = "http://" + currentHost + "/api/password";
|
const apiEndpoint = "https://" + currentHost + "/api/password";
|
||||||
|
|
||||||
// Hostnamen in die Beispiele eintragen
|
// Hostnamen in die Beispiele eintragen
|
||||||
document.getElementById("api-endpoint").textContent = apiEndpoint;
|
document.getElementById("api-endpoint").textContent = apiEndpoint;
|
||||||
|
|||||||
Reference in New Issue
Block a user