diff options
Diffstat (limited to '')
-rw-r--r-- | app/views/__init__.py | 4 | ||||
-rw-r--r-- | app/views/api.py | 9 |
2 files changed, 0 insertions, 13 deletions
diff --git a/app/views/__init__.py b/app/views/__init__.py index 4f079c3..38771ae 100644 --- a/app/views/__init__.py +++ b/app/views/__init__.py @@ -51,7 +51,6 @@ def page_not_found (error): # Now import the views from . import categories, consts, expenses, user, stats -#from . import api app.register_blueprint(expenses.mod) app.register_blueprint(user.mod, url_prefix='/user') @@ -59,7 +58,4 @@ app.register_blueprint(consts.mod, url_prefix='/const') app.register_blueprint(categories.mod, url_prefix='/cat') app.register_blueprint(stats.mod, url_prefix='/stats') -#for m in api.mods: -# app.register_blueprint(m, url_prefix='/api') - app.add_url_rule('/', endpoint = 'index', build_only = True) diff --git a/app/views/api.py b/app/views/api.py deleted file mode 100644 index 658c0ed..0000000 --- a/app/views/api.py +++ /dev/null @@ -1,9 +0,0 @@ -from flask.ext.restless import APIManager -from . import app, db -from ..model import SingleExpense, Category - -mods = [] - -manager = APIManager(app, flask_sqlalchemy_db=db) -mods.append(manager.create_api_blueprint(SingleExpense, methods=['GET', 'POST'], url_prefix='')) -mods.append(manager.create_api_blueprint(Category, url_prefix='')) |