diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-04-19 12:46:08 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-04-19 12:46:08 +0200 |
commit | f5e2a8a4227de1e49598843294b7a5e3d82e273f (patch) | |
tree | 46a6e19fe8f50fc8d9ab88f7113c3553c4cc0d89 /src/bootstrap.py | |
parent | Fixed bad links to the logo. (diff) | |
download | newspipe-f5e2a8a4227de1e49598843294b7a5e3d82e273f.tar.gz newspipe-f5e2a8a4227de1e49598843294b7a5e3d82e273f.tar.bz2 newspipe-f5e2a8a4227de1e49598843294b7a5e3d82e273f.zip |
Test preprocessors with Flask-Restless.
Diffstat (limited to 'src/bootstrap.py')
-rw-r--r-- | src/bootstrap.py | 4 |
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 |