Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoamaral committed Jul 7, 2023
1 parent 7a3e841 commit e7d4827
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions django/admin/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,6 @@
path('articles/post/',post_article),
path('admin/', admin.site.urls),
path('api-auth/', include('rest_framework.urls')),
# path('articles/all/', AllArticleViewSet.as_view()),
# path('articles/prediction/none/', ArticlesPredictionNone.as_view()),
# path('feed/articles/prediction/none/', ToPredictFeed()),
# path('trials/all/', AllTrialViewSet.as_view()),
# path('articles/related/', RelatedArticles.as_view({'get': 'list'})),
path('feed/articles/author/<int:author_id>/', ArticlesByAuthorFeed(), name='articles_by_author_feed'),
path('feed/articles/category/<str:category>/', ArticlesByCategoryFeed()),
path('feed/articles/subject/<str:subject>/', ArticlesBySubjectFeed()),
Expand All @@ -63,7 +58,7 @@
path('articles/relevant/week/<int:year>/<int:week>/', newsletterByWeek.as_view({'get':'list'})),
path('articles/relevant/last/<int:days>/', lastXdays.as_view({'get':'list'})),
path('categories/', CategoryViewSet.as_view({'get':'list'})),
# returns the cumulative count of articles and clinical trials for a given category
# returns the cumulative count of articles and clinical trials for a given category
path('categories/<str:category_slug>/monthly-counts/', MonthlyCountsView.as_view()),
re_path('^trials/category/(?P<category_slug>[-\w]+)/$', TrialsByCategory.as_view({'get':'list'})),
re_path('^trials/source/(?P<source>.+)/$', TrialsBySourceList.as_view()),
Expand Down

0 comments on commit e7d4827

Please sign in to comment.