Skip to content

Happy Thoughts API project - Jenny A#504

Open
jempa182 wants to merge 8 commits intoTechnigo:masterfrom
jempa182:master
Open

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

Conversation

@jempa182
Copy link

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

@HIPPIEKICK HIPPIEKICK left a comment

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!

import express from "express";
import cors from "cors";
import mongoose from "mongoose";
import dotenv from 'dotenv';
Copy link
Contributor

Choose a reason for hiding this comment

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

Consistency -> " vs '

app.post("/thoughts/:thoughtId/like", async (req, res) => {
const { thoughtId } = req.params
try {
const updatedThought = await Thought.findByIdAndUpdate(
Copy link
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