From 9e0919466c15387cb034ad780776e7a5dd167c92 Mon Sep 17 00:00:00 2001 From: Administrator Date: Sat, 23 Sep 2023 16:22:05 +0300 Subject: [PATCH] ping --- web/urls.py | 3 ++- web/views/__init__.py | 1 + web/views/ping.py | 8 ++++++++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 web/views/ping.py diff --git a/web/urls.py b/web/urls.py index 7e8c080..95cd312 100644 --- a/web/urls.py +++ b/web/urls.py @@ -9,5 +9,6 @@ urlpatterns = [ path(*SelectProject.as_path()), path(*ProfileView.as_path()), path(*ProfilePhoto.as_path()), - path(*LogoutView.as_path()) + path(*LogoutView.as_path()), + path(*PingView.as_path()) ] diff --git a/web/views/__init__.py b/web/views/__init__.py index 71eb19d..46f9f63 100644 --- a/web/views/__init__.py +++ b/web/views/__init__.py @@ -4,3 +4,4 @@ from .select_project import SelectProject from .profile import ProfileView from .profile_photo import ProfilePhoto from .logout import LogoutView +from .ping import PingView \ No newline at end of file diff --git a/web/views/ping.py b/web/views/ping.py new file mode 100644 index 0000000..3ae3d59 --- /dev/null +++ b/web/views/ping.py @@ -0,0 +1,8 @@ +from BaseLib.BaseView import BaseView + + +class PingView(BaseView): + endpoint = 'ping' + + def get(self): + return {}