-
Notifications
You must be signed in to change notification settings - Fork 336
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add endpoint to get version info (#2242)
Co-authored-by: Vignesh Hari <vichuhari100@gmail.com>
- Loading branch information
1 parent
8790cde
commit 369b9df
Showing
4 changed files
with
22 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
from django.conf import settings | ||
from django.http import JsonResponse | ||
from django.shortcuts import render | ||
|
||
|
||
def app_version(_): | ||
return JsonResponse({"version": settings.APP_VERSION}) | ||
|
||
|
||
def home_view(request): | ||
return render(request, "pages/home.html") | ||
|
||
|
||
def ping(request): | ||
def ping(_): | ||
return JsonResponse({"status": "OK"}) |