diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2014-08-25 22:45:00 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2014-08-25 22:45:00 +0200 |
commit | 00e8320d57fc40a22f52fd1496ac1de373a816be (patch) | |
tree | cfd69e749bff382465375d1d29a68059d28d5a3d | |
parent | fde0a9ec43f18b3dda8d5dc14728f77fcb281704 (diff) | |
download | kosten-00e8320d57fc40a22f52fd1496ac1de373a816be.tar.gz kosten-00e8320d57fc40a22f52fd1496ac1de373a816be.tar.bz2 kosten-00e8320d57fc40a22f52fd1496ac1de373a816be.zip |
Remove API
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='')) |