From 1c1ff7d7fa442bca661573fa657e44002ff440d3 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Wed, 16 Dec 2020 09:03:11 -0500 Subject: [PATCH] test --- fHDHR_web/api/__init__.py | 4 ++++ fHDHR_web/api/test.py | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 fHDHR_web/api/test.py 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