소스 검색

status api (test)

Light Beacon 2 년 전
부모
커밋
3ae9df9ff9
1개의 변경된 파일과 11개의 추가작업 그리고 0개의 파일을 삭제
  1. 11 0
      Modules/APIs.py

+ 11 - 0
Modules/APIs.py

@@ -0,0 +1,11 @@
+from Interfaces import page_class_handles, PageBase
+
+@page_class_handles('apis/status')
+class StatusPage(PageBase):
+
+    @property
+    def display_name(self):
+        return 'api/status'
+    
+    def generate(self, *args, **kwargs):
+        return 'ok'