diff --git a/views/index.ejs b/views/index.ejs index 593b7755232fc6dd1b566a5b911c67b660d173c9..ece7e6533b64462a560e2db386a4d1c088560ad5 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -27,7 +27,7 @@ <!-- แสดงปุ่ม "Create Tour" สำหรับผู้ใช้ที่เข้าสู่ระบบแล้ว --> <% if (session.userId) { %> - <a href="/tour/create" class="btn-create">Create Tour</a> + <a href="/create" class="btn-create">Create Tour</a> <% } %> <ul> @@ -36,7 +36,7 @@ <a href="/tour/<%= tour.id %>"><%= tour.name %></a> - <%= tour.price %> THB <% if (session.userId) { %> <!-- ตรวจสอบว่าเป็นผู้ใช้ที่ล็อกอินแล้วหรือไม่ --> - <a href="/tour/edit/<%= tour.id %>" class="btn-edit">Edit</a> <!-- ปุ่มสำหรับแก้ไขทัวร์ --> + <a href="/edit/<%= tour.id %>" class="btn-edit">Edit</a> <!-- ปุ่มสำหรับแก้ไขทัวร์ --> <% } %> </li> <% }) %>