Skip to content

Happy Thoughts API project - Jenny A#504

Open
jempa182 wants to merge 8 commits into
Technigo:masterfrom
jempa182:master
Open

Happy Thoughts API project - Jenny A#504
jempa182 wants to merge 8 commits into
Technigo:masterfrom
jempa182:master

Conversation

@jempa182

Copy link
Copy Markdown

@jempa182 jempa182 changed the title Happy Thoughts API project Happy Thoughts API project - Jenny A Dec 20, 2024

@HIPPIEKICK HIPPIEKICK left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice and structured, keep up the good work!

Comment thread server.js
import express from "express";
import cors from "cors";
import mongoose from "mongoose";
import dotenv from 'dotenv';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consistency -> " vs '

Comment thread server.js
app.post("/thoughts/:thoughtId/like", async (req, res) => {
const { thoughtId } = req.params
try {
const updatedThought = await Thought.findByIdAndUpdate(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants