Localhost no mas

This commit is contained in:
Kasper Rynning-Tønnesen
2020-01-21 09:49:19 +01:00
parent 19f7dd9e0b
commit 3f422d9bf0
2 changed files with 7 additions and 19 deletions

View File

@@ -2,12 +2,12 @@
<html>
<head>
<title>Vinlottis</title>
<link href=/dist/css/vinlottis.2153eea.css rel=stylesheet></head>
<link href=/dist/css/vinlottis.9de3c0e.css rel=stylesheet></head>
<body>
<div id=app></div>
<script src=/dist/js/vinlottis.bundle.2153eea.js></script>
<script src=/dist/js/vinlottis.bundle.9de3c0e.js></script>
<script type=text/javascript src=/dist/js/vinlottis.bundle.2153eea.js></script></body>
<script type=text/javascript src=/dist/js/vinlottis.bundle.9de3c0e.js></script></body>
</html>

View File

@@ -39,25 +39,13 @@
</select>
</div>
<div class="label-div">
<input
type="text"
v-model="winner.wine.name"
placeholder="Vin-navn"
/>
<input type="text" v-model="winner.wine.name" placeholder="Vin-navn" />
</div>
<div class="label-div">
<input
type="text"
v-model="winner.wine.vivinoLink"
placeholder="Vivino-link"
/>
<input type="text" v-model="winner.wine.vivinoLink" placeholder="Vivino-link" />
</div>
<div class="label-div">
<input
type="text"
v-model="winner.wine.rating"
placeholder="Rating"
/>
<input type="text" v-model="winner.wine.rating" placeholder="Rating" />
</div>
<hr />
</div>
@@ -136,7 +124,7 @@ export default {
}
}
let _response = await fetch("http://localhost:30030/api/log/", {
let _response = await fetch("/api/log/", {
headers: {
"Content-Type": "application/json"
// 'Content-Type': 'application/x-www-form-urlencoded',