fds
This commit is contained in:
parent
6954bc75c1
commit
e30768940f
1 changed files with 2 additions and 2 deletions
|
@ -85,8 +85,8 @@ mail = Mail(app)
|
||||||
@app.before_request
|
@app.before_request
|
||||||
def before_request():
|
def before_request():
|
||||||
|
|
||||||
print(request.access_route[0])
|
print('first: ' + request.access_route[0])
|
||||||
print(request.remote_addr)
|
print('second: ' + request.remote_addr)
|
||||||
if request.method.lower() != "get" and app.config["READ_ONLY"]:
|
if request.method.lower() != "get" and app.config["READ_ONLY"]:
|
||||||
return {"error":f"{app.config['SITE_NAME']} is currently in read-only mode."}, 500
|
return {"error":f"{app.config['SITE_NAME']} is currently in read-only mode."}, 500
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue