-
Notifications
You must be signed in to change notification settings - Fork 515
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
base: master
Are you sure you want to change the base?
Fantasy Realm API #507
Conversation
…. Added relational links. Characters can be filtered by homeWorld and item.
There was a problem hiding this 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 :/
You have to refresh the page a bunch of times before the database awakens 😅
Skickat från Outlook för iOS<https://aka.ms/o0ukef>
…________________________________
Från: Matilda Brunemalm ***@***.***>
Skickat: Wednesday, December 18, 2024 11:55:05 AM
Till: Technigo/project-mongo-api ***@***.***>
Kopia: Helene Westrin ***@***.***>; Author ***@***.***>
Ämne: Re: [Technigo/project-mongo-api] Fantasy Realm API (PR #507)
@HIPPIEKICK requested changes on this pull request.
Your deploy says it can't connect to database :/
—
Reply to this email directly, view it on GitHub<#507 (review)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AOT2LCJYPXQ3GRRYMZ6DHJ32GFIATAVCNFSM6AAAAABTSDMQNCVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDKMJRGQ4DQNJRGU>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
There was a problem hiding this 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"); |
There was a problem hiding this comment.
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"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And this 😊
Link to API
https://fantasy-world-mongodb-api.vercel.app