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