test
This commit is contained in:
parent
2c5c8a8e99
commit
1c1ff7d7fa
@ -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
20
fHDHR_web/api/test.py
Normal 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
|
||||||
Loading…
Reference in New Issue
Block a user