added posts

This commit is contained in:
2025-12-10 06:45:55 +00:00
parent bd59419a0e
commit 19971cce5f

View File

@@ -18,8 +18,13 @@ onMounted(() => {
</script>
<template>
<div>
<img src="/img/epic.jpeg" />
<div v-for="post in posts">
<h2>{{ post.title }}</h2>
<p>By: {{ post.author.username }}</p>
<div>{{ post.content }}</div>
<small
>Created at: {{ new Date(post.CreatedAt).toLocaleString() }}</small
>
</div>
</template>