mirror of https://github.com/MISP/misp-dashboard
fix: [flask] Added favicon.ico
parent
a65d2cb233
commit
cba4ab68f1
|
@ -35,7 +35,8 @@ mkdir -p css fonts js
|
||||||
popd
|
popd
|
||||||
mkdir -p temp
|
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
|
# jquery
|
||||||
JQVERSION="3.2.1"
|
JQVERSION="3.2.1"
|
||||||
|
|
|
@ -14,7 +14,7 @@ import redis
|
||||||
|
|
||||||
import util
|
import util
|
||||||
from flask import (Flask, Response, jsonify, render_template, request,
|
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,
|
from helpers import (contributor_helper, geo_helper, live_helper,
|
||||||
trendings_helper, users_helper)
|
trendings_helper, users_helper)
|
||||||
|
|
||||||
|
@ -141,6 +141,10 @@ def index():
|
||||||
zoomlevel=cfg.getint('Dashboard' ,'zoomlevel')
|
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")
|
@app.route("/geo")
|
||||||
def geo():
|
def geo():
|
||||||
|
|
Loading…
Reference in New Issue