Index: backend/routers/forumRouter.js
===================================================================
--- backend/routers/forumRouter.js	(revision 77de066dd2d6073aad3a748111f649eed086b4c9)
+++ backend/routers/forumRouter.js	(revision c19791093899746eff4e9a96157e92f1bf80bce4)
@@ -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 77de066dd2d6073aad3a748111f649eed086b4c9)
+++ 	(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 77de066dd2d6073aad3a748111f649eed086b4c9)
+++ client/src/CreatePost/CreatePost.jsx	(revision c19791093899746eff4e9a96157e92f1bf80bce4)
@@ -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 77de066dd2d6073aad3a748111f649eed086b4c9)
+++ client/src/Dashboard/components/Forum.jsx	(revision c19791093899746eff4e9a96157e92f1bf80bce4)
@@ -1,6 +1,6 @@
-import React, { useState, useEffect } from 'react';
-import { useNavigate } from 'react-router-dom';
-import commentIcon from '../../assets/images/comment.svg';
-import trashIcon from '../../assets/images/delete.svg'; // Add this import
+import React, { useState, useEffect } from "react";
+import { useNavigate } from "react-router-dom";
+import commentIcon from "../../assets/images/comment.svg";
+import trashIcon from "../../assets/images/delete.svg"; // Add this import
 
 const Forum = ({ setActivePage, onPostClick }) => {
@@ -10,5 +10,5 @@
   const [hasMore, setHasMore] = useState(true);
   const postsPerPage = 5;
-  const user = JSON.parse(localStorage.getItem('user'));
+  const user = JSON.parse(localStorage.getItem("user"));
 
   useEffect(() => {
@@ -27,5 +27,5 @@
       if (page === 0) {
         setPosts(data);
-        console.log('Fetched posts:', data);
+        console.log("Fetched posts:", data);
       } else {
         setPosts((prevPosts) => [...prevPosts, ...data]);
@@ -35,5 +35,5 @@
       }
     } catch (error) {
-      console.error('Error fetching forum posts:', error);
+      console.error("Error fetching forum posts:", error);
     }
   };
@@ -42,7 +42,7 @@
     try {
       const response = await fetch(`/forum/posts/${postId}`, {
-        method: 'DELETE',
+        method: "DELETE",
         headers: {
-          'Content-Type': 'application/json',
+          "Content-Type": "application/json",
         },
       });
@@ -50,9 +50,8 @@
         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');
+      console.log("Post deleted successfully");
     } catch (error) {
-      console.error('Error deleting post:', error);
+      console.error("Error deleting post:", error);
     }
   };
@@ -79,14 +78,11 @@
                   onClick={(e) => {
                     e.stopPropagation();
-                    // Here you would add the delete confirmation and logic
                     if (
                       window.confirm(
-                        'Are you sure you want to delete this post?'
+                        "Are you sure you want to delete this post?"
                       )
                     ) {
-                      // 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}
@@ -115,10 +101,10 @@
 
               <p className="text-m text-gray-500">
-                By {post.authorName},{' '}
-                <span>{post.dateCreated.split('T')[0]}</span>
+                By {post.authorName},{" "}
+                <span>{post.dateCreated.split("T")[0]}</span>
               </p>
               <p className="mt-2 text-gray-400 text-xl">
                 {post.content && post.content.length > 300
-                  ? post.content.slice(0, 300) + '...'
+                  ? post.content.slice(0, 300) + "..."
                   : post.content}
               </p>
@@ -128,6 +114,6 @@
                   // Prevent clicking the post if the delete button was clicked
                   if (
-                    e.target.closest('.delete-btn') ||
-                    e.target.classList.contains('delete-btn')
+                    e.target.closest(".delete-btn") ||
+                    e.target.classList.contains("delete-btn")
                   ) {
                     e.stopPropagation();
@@ -159,5 +145,5 @@
         <div className="flex flex-row justify-end p-6 rounded-lg shadow-md">
           <button
-            onClick={() => navigate('/create-post')}
+            onClick={() => navigate("/create-post")}
             className="cursor-pointer px-6 py-3 bg-yellow-500 text-black rounded hover:bg-yellow-600"
           >
