Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
CareyWang authored Dec 8, 2023
1 parent cd89b66 commit b333669
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"
}
Expand Down

0 comments on commit b333669

Please sign in to comment.