aboutsummaryrefslogtreecommitdiff
path: root/budget/run.py
diff options
context:
space:
mode:
authorAlexis Metaireau <alexis@notmyidea.org>2011-09-11 22:11:36 +0200
committerAlexis Metaireau <alexis@notmyidea.org>2011-09-11 22:11:36 +0200
commit4bb96b28dee16e78d68f16f5bf158f1e879a0523 (patch)
treeefabe3db1bdf7b885c2d4f196d490d935105dc67 /budget/run.py
parent20f6f204cfc704b7486cfd9f36a643073fdc57fa (diff)
downloadihatemoney-mirror-4bb96b28dee16e78d68f16f5bf158f1e879a0523.zip
ihatemoney-mirror-4bb96b28dee16e78d68f16f5bf158f1e879a0523.tar.gz
ihatemoney-mirror-4bb96b28dee16e78d68f16f5bf158f1e879a0523.tar.bz2
API first draft: utils. (related to #27)
Introduces the "rest" module, with reusable utils for flask applications (will be packaged as a flask extension later on).
Diffstat (limited to 'budget/run.py')
-rw-r--r--budget/run.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/budget/run.py b/budget/run.py
index b1fad19..65c6591 100644
--- a/budget/run.py
+++ b/budget/run.py
@@ -1,11 +1,12 @@
from web import main, db, mail
-import api
+from api import api
from flask import *
app = Flask(__name__)
app.config.from_object("default_settings")
app.register_blueprint(main)
+app.register_blueprint(api)
# db
db.init_app(app)