Skip to content

Commit

Permalink
Add endpoint for image_tag
Browse files Browse the repository at this point in the history
  • Loading branch information
derneuere committed Dec 11, 2023
1 parent 605cb59 commit c3f1ed8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/views/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,11 @@ def get(self, request, format=None):
)


class ImageTagView(APIView):
def get(self, request, format=None):
return Response({"image_tag": os.environ.get("IMAGE_TAG", "")})


class SearchTermExamples(APIView):
def get(self, request, format=None):
search_term_examples = get_search_term_examples(request.user)
Expand Down
1 change: 1 addition & 0 deletions librephotos/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ def post(self, request, *args, **kwargs):
re_path(r"^api/predefinedrules", user.PredefinedRulesView.as_view()),
re_path(r"^api/stats", dataviz.StatsView.as_view()),
re_path(r"^api/storagestats", views.StorageStatsView.as_view()),
re_path(r"^api/imagetag", views.ImageTagView.as_view()),
re_path(r"^api/serverstats", dataviz.ServerStatsView.as_view()),
re_path(r"^api/locclust", dataviz.LocationClustersView.as_view()),
re_path(r"^api/photomonthcounts", dataviz.PhotoMonthCountsView.as_view()),
Expand Down

0 comments on commit c3f1ed8

Please sign in to comment.