21 lines
381 B
Python
21 lines
381 B
Python
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
|