Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fantasy Realm API #507

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Conversation

HeleneWestrin
Copy link

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.

Your deploy says it can't connect to database :/

@HeleneWestrin
Copy link
Author

HeleneWestrin commented Dec 18, 2024 via email

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.

Structured, clean, impressive and solid work ⭐

PS. Sorry about my previous comment, I did refresh but not enough times obviously 😅


export const getItems = async (req, res) => {
try {
const items = await Item.find().populate("owner");
Copy link
Contributor

Choose a reason for hiding this comment

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

Thank you for this tip ⭐

@@ -0,0 +1,55 @@
// Import necessary functions from express-validator
import { body, validationResult } from "express-validator";
Copy link
Contributor

Choose a reason for hiding this comment

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

And this 😊

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