Index: backend/routers/forumRouter.js
===================================================================
--- backend/routers/forumRouter.js	(revision 10b8857ea302c5035ed7a0b075edf17d5aadb7cc)
+++ backend/routers/forumRouter.js	(revision 4d0820794bf81c0be7e1dd1a9a1fa0c5156df023)
@@ -10,6 +10,4 @@
 
 // Comment Routes
-router.post('/posts/:postId/comments', forumController.createComment);
-router.get('/posts/:postId/comments', forumController.getComments);
 router.put('/comments/:commentId', forumController.updateComment);
 router.delete('/comments/:commentId', forumController.deleteComment);
Index: ckend/routers/registerRouter.js
===================================================================
--- backend/routers/registerRouter.js	(revision 10b8857ea302c5035ed7a0b075edf17d5aadb7cc)
+++ 	(revision )
@@ -1,9 +1,0 @@
-const { Router } = require('express');
-const router = Router();
-const path = require('path');
-
-router.get('/register', (req, res) => {
-  res.sendFile(path.join(__dirname, '../../client/index.html'));
-});
-
-module.exports = router;
Index: client/src/CreatePost/CreatePost.jsx
===================================================================
--- client/src/CreatePost/CreatePost.jsx	(revision 10b8857ea302c5035ed7a0b075edf17d5aadb7cc)
+++ client/src/CreatePost/CreatePost.jsx	(revision 4d0820794bf81c0be7e1dd1a9a1fa0c5156df023)
@@ -1,13 +1,13 @@
-import React, { useState } from 'react';
-import { useNavigate } from 'react-router-dom';
+import React, { useState } from "react";
+import { useNavigate } from "react-router-dom";
 
 const CreatePost = ({ setActivePage }) => {
-  const [title, setTitle] = useState('');
-  const [content, setContent] = useState('');
+  const [title, setTitle] = useState("");
+  const [content, setContent] = useState("");
   const navigate = useNavigate();
 
   const backToForum = () => {
-    setActivePage('forum');
-    navigate('/dashboard');
+    setActivePage("forum");
+    navigate("/dashboard");
   };
 
@@ -15,17 +15,17 @@
     e.preventDefault();
 
-    const user = JSON.parse(localStorage.getItem('user'));
+    const user = JSON.parse(localStorage.getItem("user"));
 
     if (!user || !user.id || !user.name) {
-      alert('You must be logged in to create a post.');
-      navigate('/login');
+      alert("You must be logged in to create a post.");
+      navigate("/login");
       return;
     }
 
     try {
-      const response = await fetch('/forum/posts', {
-        method: 'POST',
+      const response = await fetch("/forum/posts", {
+        method: "POST",
         headers: {
-          'Content-Type': 'application/json',
+          "Content-Type": "application/json",
         },
         body: JSON.stringify({
@@ -41,8 +41,7 @@
       }
 
-      alert('Post created successfully!');
-      navigate('/dashboard');
+      navigate("/dashboard");
     } catch (error) {
-      console.error('Error creating post:', error);
+      console.error("Error creating post:", error);
       alert(`Failed to create post: ${error.message}`);
     }
Index: client/src/Dashboard/components/Forum.jsx
===================================================================
--- client/src/Dashboard/components/Forum.jsx	(revision 10b8857ea302c5035ed7a0b075edf17d5aadb7cc)
+++ client/src/Dashboard/components/Forum.jsx	(revision 4d0820794bf81c0be7e1dd1a9a1fa0c5156df023)
@@ -2,5 +2,5 @@
 import { useNavigate } from 'react-router-dom';
 import commentIcon from '../../assets/images/comment.svg';
-import trashIcon from '../../assets/images/delete.svg';
+import trashIcon from '../../assets/images/delete.svg'; // Add this import
 
 const Forum = ({ setActivePage, onPostClick }) => {
@@ -50,5 +50,4 @@
         throw new Error(`HTTP error! status: ${response.status}`);
       }
-      // Remove the deleted post from the state
       setPosts((prevPosts) => prevPosts.filter((post) => post.id !== postId));
       console.log('Post deleted successfully');
@@ -79,5 +78,4 @@
                   onClick={(e) => {
                     e.stopPropagation();
-                    // Here you would add the delete confirmation and logic
                     if (
                       window.confirm(
@@ -85,8 +83,6 @@
                       )
                     ) {
-                      // Call your delete post function here
-                      console.log('Delete post:', post.id);
+                      handleDeletePost(post.id);
                     }
-                    handleDeletePost(post.id);
                   }}
                 >
@@ -98,15 +94,5 @@
                 <h2
                   className="text-3xl font-semibold mb-2 cursor-pointer hover:underline"
-                  onClick={(e) => {
-                    // Prevent clicking the post if the delete button was clicked
-                    if (
-                      e.target.closest('.delete-btn') ||
-                      e.target.classList.contains('delete-btn')
-                    ) {
-                      e.stopPropagation();
-                      return;
-                    }
-                    onPostClick && onPostClick(post);
-                  }}
+                  onClick={() => onPostClick(post)}
                 >
                   {post.title}
