Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -100,6 +100,10 @@ def getdatalocal():
|
|
100 |
response = Response(res.content, res.status_code, res.headers)
|
101 |
return response
|
102 |
|
|
|
|
|
|
|
|
|
103 |
|
104 |
if __name__ == '__main__':
|
105 |
mode = os.environ.get('FLASK_ENV', 'production')
|
|
|
100 |
response = Response(res.content, res.status_code, res.headers)
|
101 |
return response
|
102 |
|
103 |
+
@ app.route('/<file>' , methods=['GET'])
|
104 |
+
def fileget(file):
|
105 |
+
return app.send_static_file(file)
|
106 |
+
|
107 |
|
108 |
if __name__ == '__main__':
|
109 |
mode = os.environ.get('FLASK_ENV', 'production')
|