Browse Source

Added site.webmanifest to flask app

pull/1/head
Ravi Shah 5 years ago
parent
commit
0f1c920c84
  1. 5
      garage_door_script.py
  2. 0
      static/site.webmanifest

5
garage_door_script.py

@ -97,5 +97,10 @@ def favicon():
return send_from_directory(os.path.join(app.root_path, 'static'), return send_from_directory(os.path.join(app.root_path, 'static'),
'favicon.ico',mimetype='image/vnd.microsoft.icon') 'favicon.ico',mimetype='image/vnd.microsoft.icon')
# Route for the webmanifest file
@app.route('/site.webmanifest')
def favicon():
return send_from_directory(os.path.join(app.root_path, 'static'),'site.webmanifest')
if __name__ == '__main__': if __name__ == '__main__':
app.run(host='0.0.0.0', port=1235) #Run the webserver app.run(host='0.0.0.0', port=1235) #Run the webserver

0
site.webmanifest → static/site.webmanifest

Loading…
Cancel
Save