| 123456789101112131415 |
- from .tool.func import *
- async def api_user_setting_editor():
- other_set = {}
- other_set["ip"] = ip_check()
-
- func_name = sys._getframe().f_code.co_name
- if flask.request.method == 'POST':
- func_name += '_post'
- other_set['data'] = flask.request.form.get('data', 'Test')
- elif flask.request.method == 'DELETE':
- func_name += '_delete'
- other_set['data'] = flask.request.form.get('data', 'Test')
- return flask.Response(response = (await python_to_golang(func_name, other_set)), status = 200, mimetype = 'application/json')
|