diff --git a/fHDHR_web/api/__init__.py b/fHDHR_web/api/__init__.py index 58d17fe..46646cf 100644 --- a/fHDHR_web/api/__init__.py +++ b/fHDHR_web/api/__init__.py @@ -13,6 +13,8 @@ from .debug import Debug_JSON from .images import Images +from .test import Test + class fHDHR_API(): @@ -32,3 +34,5 @@ class fHDHR_API(): self.debug = Debug_JSON(fhdhr) self.images = Images(fhdhr) + + self.test = Test(fhdhr) diff --git a/fHDHR_web/api/test.py b/fHDHR_web/api/test.py new file mode 100644 index 0000000..a302a2f --- /dev/null +++ b/fHDHR_web/api/test.py @@ -0,0 +1,20 @@ +from flask import request, redirect, Response, abort +import urllib.parse +import json + + +class Test(): + endpoints = ["/test"] + endpoint_name = "test" + endpoint_methods = ["GET", "POST"] + + def __init__(self, fhdhr): + self.fhdhr = fhdhr + + def __call__(self, *args): + return self.get(*args) + + def get(self, *args): + + + return "%s Success" % method