blob: 658c0edfecfe024eb4f9e4bc54f2e0506b8ad7f8 (
plain)
1
2
3
4
5
6
7
8
9
|
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=''))
|