diff --git a/simpleblog/front/src/router/index.ts b/simpleblog/front/src/router/index.ts
index 23508816..9e9c03c2 100644
--- a/simpleblog/front/src/router/index.ts
+++ b/simpleblog/front/src/router/index.ts
@@ -1,6 +1,7 @@
import { createRouter, createWebHistory } from "vue-router";
import HomeView from "../views/HomeView.vue";
import WriteView from "../views/WriteView.vue";
+import ReadView from "../views/ReadView.vue";
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
@@ -14,6 +15,12 @@ const router = createRouter({
path: "/write",
name: "write",
component: WriteView,
+ },
+ {
+ path: "/read/:postId",
+ name: "read",
+ component: ReadView,
+ props: true,
}
// {
// path: "/about",
diff --git a/simpleblog/front/src/views/HomeView.vue b/simpleblog/front/src/views/HomeView.vue
index a35a6479..cb12382d 100644
--- a/simpleblog/front/src/views/HomeView.vue
+++ b/simpleblog/front/src/views/HomeView.vue
@@ -1,6 +1,9 @@
+
+
+ {{ post.title }}
+ {{ post.content }}
+
\ No newline at end of file