* ## Current Endpoints * Frontend * http://localhost:3000/#/ landing page * http://localhost:3000/#/signup signup page * http://localhost:3000/#/signin signin page * Backend (list needs updating) * http://localhost:3000/api/loggedIn see if a users session is logged in * http://localhost:3000/api/register Registration Page * http://localhost:3000/api/login Login Page * http://localhost:3000/api/hello simple response string * http://localhost:3000/api/selectExample get all users from DB * http://localhost:3000/api/hosturl return host from env variable * http://localhost:3000/api/getCommentData/:id get id by comment * http://localhost:3000/api/getUser/:id get user by id * http://localhost:3000/api/gettigerspace/:id get tiger space by id * http://localhost:3000/api/getPostData/:id get post by id * http://localhost:3000/api/getPostComments/:postid return a posts comments * http://localhost:3000/api/createPost post a post to the database * http://localhost:3000/api/createComment post a comment to the database and bump the parent post * http://localhost:3000/api/getPost/:postid/ get a post's data from the post table (can be joined with other tables if data isn't retrieved separately, currently only retrieves the single table's results) * http://localhost:3000/api/getPostComments/:postid/ get all comments for a particular post (can be joined with other tables if data isn't retrieved separately, currently only retrieves the single table's results) * http://localhost:3000/api/deletePost deletes all child comments of a post, and then deletes the post * http://localhost:3000/api/userDeleteOwnComment allows user to delete a comment created by their user account (can be adjusted to also work by an admin user) * http://localhost:3000/api/getRecentPosts/ returns the 10 most recent posts ordered by Bump column * http://localhost:300/api/getFlaggedPosts/ returns all flagged posts * http://localhost:300/api/getFlaggedComments/ returns all flagged comments * http://localhost:300/api/flagPost/ flag a post * http://localhost:300/api/flagComment/ flag a comment * http://localhost:300/api/unflagPost/ unflag a post * http://localhost:300/api/unflagComment/ unflag a comment * demos that can be removed when implemented in FE * http://localhost:3000/api/createPostDemo form to post a Post to database * http://localhost:3000/api/createCommentDemo form to post a comment to the database * http://localhost:3000/api/adminDeletePost form for the deletePost endpoint * http://localhost:3000/api/userDeleteOwnCommentDemo form for the userDeleteOwnComment endpoint * http://localhost:300/api/flagPostDemo form to flag a post * http://localhost:300/api/flagCommentDemo form to flag a comment * http://localhost:300/api/unflagPostDemo form to unflag a post * http://localhost:300/api/unflagCommentDemo form to unflag a comment