aboutsummaryrefslogtreecommitdiff
path: root/src/bootstrap.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/bootstrap.py')
-rw-r--r--src/bootstrap.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bootstrap.py b/src/bootstrap.py
index 6d76d58f..2c5f9951 100644
--- a/src/bootstrap.py
+++ b/src/bootstrap.py
@@ -6,6 +6,7 @@
import os
import conf
import logging
+import flask.ext.restless
from urllib.parse import urlsplit
def set_logging(log_path, log_level=logging.INFO,
@@ -51,6 +52,9 @@ if not application.config['SECURITY_PASSWORD_SALT']:
db = SQLAlchemy(application)
+# Create the Flask-Restless API manager.
+manager = flask.ext.restless.APIManager(application, flask_sqlalchemy_db=db)
+
def populate_g():
from flask import g
g.db = db
bgstack15