-
Notifications
You must be signed in to change notification settings - Fork 6
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
base: staging
Are you sure you want to change the base?
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/bitproject/bit-next/33l87srba |
article.save() | ||
|
||
return '', 200 | ||
|
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.
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): |
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.
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',)) |
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.
2 Lines of space between each route/function
article.set_needsReview(False) | ||
article.save() | ||
return article | ||
|
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.
2 Lines of space between each route/function
Fixed issues with the org and tag routes.