This commit is contained in:
deathbybandaid 2020-12-16 09:03:11 -05:00
parent 2c5c8a8e99
commit 1c1ff7d7fa
2 changed files with 24 additions and 0 deletions

View File

@ -13,6 +13,8 @@ from .debug import Debug_JSON
from .images import Images from .images import Images
from .test import Test
class fHDHR_API(): class fHDHR_API():
@ -32,3 +34,5 @@ class fHDHR_API():
self.debug = Debug_JSON(fhdhr) self.debug = Debug_JSON(fhdhr)
self.images = Images(fhdhr) self.images = Images(fhdhr)
self.test = Test(fhdhr)

20
fHDHR_web/api/test.py Normal file
View File

@ -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