Skip to content

Conversation

@bz22
Copy link

@bz22 bz22 commented Jul 9, 2020

Fixed issues with the org and tag routes.

@vercel
Copy link

vercel bot commented Jul 9, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/bitproject/bit-next/33l87srba
✅ Preview: https://bit-next-git-brandon-orgtag-routes.bitproject.vercel.app

article.save()

return '', 200

Copy link
Contributor

Choose a reason for hiding this comment

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

2 lines of space between each function

@blueprint.route('/api/organizations/<org_slug>/articles/<slug>',
methods=('PUT',))
@jwt_required
def add_article(slug, org_slug, **kwargs):
Copy link
Contributor

Choose a reason for hiding this comment

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

For add article, return the article that was added

article.save()
return article

@blueprint.route('/api/tags/<slug>/articles/<articleSlug>', methods=('DELETE',))
Copy link
Contributor

Choose a reason for hiding this comment

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

2 Lines of space between each route/function

article.set_needsReview(False)
article.save()
return article

Copy link
Contributor

Choose a reason for hiding this comment

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

2 Lines of space between each route/function

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.

3 participants