From 34542e99eae4d30b4d9cceb36a3fe9cc8793d54b Mon Sep 17 00:00:00 2001
From: Atiwit Pattanapukdee <65160394@go.buu.ac.th>
Date: Tue, 18 Mar 2025 13:07:30 +0700
Subject: [PATCH] Project Round 3

---
 views/index.ejs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/views/index.ejs b/views/index.ejs
index 593b775..ece7e65 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>
       <% }) %>
-- 
GitLab