diff options
Diffstat (limited to 'budget/api.py')
| -rw-r--r-- | budget/api.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/budget/api.py b/budget/api.py index 9d41b3c..4ca04f2 100644 --- a/budget/api.py +++ b/budget/api.py @@ -2,7 +2,7 @@ from flask import * from models import db, Project, Person, Bill -from forms import (ProjectForm, EditProjectForm, MemberForm, BillForm, +from forms import (ProjectForm, EditProjectForm, MemberForm, BillForm, get_billform_for) from utils import for_all_methods @@ -12,6 +12,7 @@ from werkzeug import Response api = Blueprint("api", __name__, url_prefix="/api") + def check_project(*args, **kwargs): """Check the request for basic authentication for a given project. @@ -134,8 +135,8 @@ class BillHandler(object): project_resource = RESTResource( name="project", - route="/projects", - app=api, + route="/projects", + app=api, actions=["add", "update", "delete", "get"], handler=ProjectHandler()) |
