set up wsgi/flask option in backend
This commit is contained in:
@@ -11,12 +11,9 @@ class DBManager:
|
||||
#printf("DEBUG:" + envuser + envpass)
|
||||
self.connection = mysql.connector.connect(
|
||||
user=envuser,
|
||||
#user=user,
|
||||
password=envpass,
|
||||
#password=password,
|
||||
host=host, # name of the mysql service as set in the docker compose file
|
||||
database=database
|
||||
#auth_plugin='mysql_native_password'
|
||||
)
|
||||
self.cursor = self.connection.cursor()
|
||||
|
||||
@@ -46,9 +43,6 @@ def listBlog():
|
||||
rec = conn.query_titles()
|
||||
|
||||
response = ''
|
||||
ict = ''
|
||||
arg1 = ''
|
||||
arg2 = ''
|
||||
|
||||
for c in rec:
|
||||
response = response + '<div> Log: ' + c + '</div>'
|
||||
@@ -58,7 +52,7 @@ def listBlog():
|
||||
response = response + '<div>Delta: ' + dtFormatted + '</div>'
|
||||
return response
|
||||
|
||||
@server.route('/args-test', methods=['GET'])
|
||||
@server.route('/inconsequential-auth', methods=['GET'])
|
||||
def listArgs():
|
||||
|
||||
good_token_i = str(os.getenv("TOKEN_I"))
|
||||
|
||||
Reference in New Issue
Block a user