fix: [flask] Added favicon.ico

pull/97/head
Steve Clement 2019-05-29 11:18:32 +09:00
parent a65d2cb233
commit cba4ab68f1
No known key found for this signature in database
GPG Key ID: 69A20F509BE4AEE9
2 changed files with 7 additions and 2 deletions

View File

@ -35,7 +35,8 @@ mkdir -p css fonts js
popd
mkdir -p temp
wget http://www.misp-project.org/assets/images/misp-small.png -O static/pics/MISP.png
wget https://www.misp-project.org/assets/images/misp-small.png -O static/pics/MISP.png
wget https://www.misp-project.org/favicon.ico -O static/favicon.ico
# jquery
JQVERSION="3.2.1"

View File

@ -14,7 +14,7 @@ import redis
import util
from flask import (Flask, Response, jsonify, render_template, request,
stream_with_context)
send_from_directory, stream_with_context)
from helpers import (contributor_helper, geo_helper, live_helper,
trendings_helper, users_helper)
@ -141,6 +141,10 @@ def index():
zoomlevel=cfg.getint('Dashboard' ,'zoomlevel')
)
@app.route('/favicon.ico')
def favicon():
return send_from_directory(os.path.join(app.root_path, 'static'),
'favicon.ico', mimetype='image/vnd.microsoft.icon')
@app.route("/geo")
def geo():