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

base app setup #1

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

base app setup #1

wants to merge 11 commits into from

Conversation

OmkarArora
Copy link
Owner

Video Library - Game Labs : Backend Code

Frontend app link - https://game-labs.netlify.app/

Login -
Email: user@gmail.com
Password: abcd@1234

res.send("Connected to Game LABS server");
});

app.post("/login", async (req, res) => {
Copy link

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,
Copy link

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 ?

Copy link
Owner Author

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


router.use("/:playlistId", paramLogger);

router.route("/")
Copy link

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.

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