Atualli commited on
Commit
387c7d0
1 Parent(s): edb0b01

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
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')