diff --git a/assets/index.html b/assets/index.html
index 8dafab0..62da059 100644
--- a/assets/index.html
+++ b/assets/index.html
@@ -178,7 +178,7 @@
webreq : true };
$.ajax({
- url: "http://localhost:9999/api",
+ url: "{{.UrlAddress}}" + "/api",
type: 'POST',
contentType: "application/json; charset=utf-8",
data: JSON.stringify(json_data),
diff --git a/assets/pastes.html b/assets/pastes.html
index ef5db80..5fd248f 100644
--- a/assets/pastes.html
+++ b/assets/pastes.html
@@ -100,7 +100,7 @@
webreq : true };
$.ajax({
- url: "http://localhost:9999/api/" + Id,
+ url: "/api/" + Id,
type: 'DELETE',
contentType: "application/json; charset=utf-8",
data: JSON.stringify(json_data),