endorsement/app.py
Maxime Bloch 0a570aa2c6
add some css to the mix
add search to userlist
2019-08-04 22:27:47 +02:00

26 lines
654 B
Python

import os
from flask import Flask, send_from_directory
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__, static_url_path='/public')
app.config.from_object('config.Configuration')
db = SQLAlchemy(app)
@app.route('/js/<path:path>')
def send_js(path):
return send_from_directory('public/js', path)
@app.route('/css/<path:path>')
def send_css(path):
return send_from_directory('public/css', path)
@app.route('/favicon.ico')
def favicon():
return send_from_directory(os.path.join(app.root_path, 'public', 'img'),
'favicon.ico',
mimetype='image/vnd.microsoft.icon')