mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-05 02:41:14 -05:00
Refactored to use template response as template
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user