Refactored to use template response as template

This commit is contained in:
Ken Tsang
2017-04-04 14:04:56 +01:00
parent d290a2e0ad
commit a5e514c356
5 changed files with 149 additions and 75 deletions

View File

@@ -14,6 +14,8 @@ def get_templates():
templates = templates_dao.dao_get_all_templates_for_service(api_user.service_id)
print(templates)
return jsonify(
templates=[template.serialize() for template in templates]
), 200

View File

@@ -1,5 +1,5 @@
from app.models import TEMPLATE_TYPES
from app.v2.template_schema import template
from app.v2.template.template_schemas import get_template_by_id_response as template
get_all_template_request = {