__init__.py 327 Bytes
Newer Older
Daniele Venzano's avatar
Daniele Venzano committed
1
from flask import Flask
2

3 4
from zoe_web.api import api_bp
from zoe_web.web import web_bp
Daniele Venzano's avatar
Daniele Venzano committed
5
from common.configuration import zoeconf
6

7 8 9
app = Flask(__name__, static_url_path='/does-not-exist')
app.register_blueprint(web_bp, url_prefix='')
app.register_blueprint(api_bp, url_prefix='/api')
10

Daniele Venzano's avatar
Daniele Venzano committed
11
app.secret_key = zoeconf.cookies_secret_key