Skip to content

Commit

Permalink
update urls
Browse files Browse the repository at this point in the history
  • Loading branch information
jabelone committed Jul 13, 2024
1 parent d3fe3e0 commit 6fb8565
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions memberportal/api_metrics/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,9 @@
views.UpdatePromMetrics.as_view(),
name="api_update_prom_metrics",
),
path(
"api/update-statistics/",
views.UpdateStatistics.as_view(),
name="api_update_statistics",
),
]
4 changes: 2 additions & 2 deletions memberportal/api_metrics/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ def get(self, request):
return Response(statistics)


class CalculateMetrics(APIView):
class UpdateStatistics(APIView):
"""
put: This method calculates and stores a new set of metrics.
put: This method updates and stores a new set of statistics.
"""

permission_classes = (permissions.IsAdminUser | HasAPIKey,)
Expand Down

0 comments on commit 6fb8565

Please sign in to comment.