-
Notifications
You must be signed in to change notification settings - Fork 0
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
base app setup #1
base: master
Are you sure you want to change the base?
Conversation
res.send("Connected to Game LABS server"); | ||
}); | ||
|
||
app.post("/login", async (req, res) => { |
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.
You can make a separate route for login along with others.
required: true | ||
}, | ||
thumbnail: { | ||
type: mongoose.SchemaTypes.Url, |
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.
Correct me if I'm wrong, but type: "String"
would also work here ?
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.
I want thumbnail to be specifically a url for the image, hence used that type
routers/playlists.router.js
Outdated
|
||
router.use("/:playlistId", paramLogger); | ||
|
||
router.route("/") |
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.
Routes and controllers can be separated in all the route files.
Video Library - Game Labs : Backend Code
Frontend app link - https://game-labs.netlify.app/
Login -
Email: user@gmail.com
Password: abcd@1234