Skip to content

Backend https#57

Open
zzzzwen wants to merge 9 commits into
masterfrom
backend-https
Open

Backend https#57
zzzzwen wants to merge 9 commits into
masterfrom
backend-https

Conversation

@zzzzwen

@zzzzwen zzzzwen commented Mar 10, 2017

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread backend/controllers/movie.js Outdated
Movie.getMovieByTitle(req.user.id, req.headers.title, req.headers.offset, req.headers.limit)
.then(function (movies) {
res.json({count: count, raw: movies});
res.status(200).json({count: count, raw: movies});

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

consistency in format, breaking line above means breaking line here as well

if (result) {
res.status(200).json(result);
} else {
res.status(280).json({status: 'fail', message: 'No Schedule For Cinema'});

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

same apply to the rest

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