Skip to content
Snippets Groups Projects
Commit 2a92202c authored by Trirst's avatar Trirst
Browse files

Fix broken paths

parent 4809a991
No related branches found
No related tags found
No related merge requests found
Pipeline #891 passed
......@@ -23,7 +23,7 @@ const routes = [
component: Home,
},
{
path: "/image/:hash",
path: "/image/:flake",
name: "ImageView",
component: ImageView,
},
......
......@@ -8,9 +8,11 @@
</span>
</div>
</section>
<div id="image-container">
<img :src="`/api/image/${flake}/file`" alt="" />
</div>
<img
:src="`/api/image/${this.$route.params.flake}/file`"
alt=""
class="max-w-4xl ml-16"
/>
</div>
</template>
......@@ -28,7 +30,9 @@ export default {
},
methods: {
async getImageTags() {
const response = await fetch(`/api/image/${this.flake}/tag`);
const response = await fetch(
`/api/image/${this.$route.params.flake}/tag`
);
const imageTags = await response.json();
return imageTags;
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment