Browse Source

Update index.html

Carey Wong 1 year ago
parent
commit
b333669521
1 changed files with 1 additions and 3 deletions
  1. 1 3
      public/index.html

+ 1 - 3
public/index.html

@@ -34,8 +34,6 @@
 
   <script>
     const repo = 'https://github.com/CareyWang/MyUrls'
-    // const backend = 'http://example.com'
-    const backend = '.'
 
     let app = new Vue({
       el: "#app",
@@ -73,7 +71,7 @@
           let data = new FormData();
           data.append("longUrl", btoa(this.longUrl));
           data.append("shortKey", this.shortUrl.indexOf('http') < 0 ? this.shortUrl : '');
-          axios.post(backend + '/short', data, {
+          axios.post('/short', data, {
             header: {
               "Content-Type": "application/form-data; charset=utf-8"
             }