blob: 7c12b5138a055afa290321aabb869885e8b26ae0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
from flask import Flask
app = Flask(__name__)
app.config.from_pyfile('inventory.cfg')
with app.app_context():
from .api import app as api
app.register_blueprint(api, url_prefix='/api')
@app.route('/')
def index():
return 'foo'
|