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

Added org and tag routes #115

Open
wants to merge 2 commits into
base: staging
Choose a base branch
from
Open

Added org and tag routes #115

wants to merge 2 commits into from

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

if article.is_allTagReviewed():
article.set_needsReview(False)
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.

None yet

2 participants