mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 18:31:13 -05:00
Refactored get template
This commit is contained in:
@@ -14,8 +14,7 @@ from app.v2.template.template_schemas import get_template_by_id_request
|
|||||||
@v2_template_blueprint.route("/<template_id>", methods=['GET'])
|
@v2_template_blueprint.route("/<template_id>", methods=['GET'])
|
||||||
@v2_template_blueprint.route("/<template_id>/version/<int:version>", methods=['GET'])
|
@v2_template_blueprint.route("/<template_id>/version/<int:version>", methods=['GET'])
|
||||||
def get_template_by_id(template_id, version=None):
|
def get_template_by_id(template_id, version=None):
|
||||||
_data = {}
|
_data = {'id': template_id}
|
||||||
_data['id'] = template_id
|
|
||||||
if version:
|
if version:
|
||||||
_data['version'] = version
|
_data['version'] = version
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user