Skip to content
Snippets Groups Projects
Commit 8aebe27a authored by Patrick Jentsch's avatar Patrick Jentsch
Browse files

Fix wrong route decorator

parent a9767bf3
Branches
Tags
No related merge requests found
......@@ -7,7 +7,7 @@ from app.models import SpaCyNLPPipelineModel
from .. import bp
@bp.route('/spacy-nlp-pipeline-models<hashid:spacy_nlp_pipeline_model_id>', methods=['DELETE'])
@bp.route('/spacy-nlp-pipeline-models/<hashid:spacy_nlp_pipeline_model_id>', methods=['DELETE'])
@login_required
@content_negotiation(produces='application/json')
def delete_spacy_model(spacy_nlp_pipeline_model_id):
......@@ -32,7 +32,7 @@ def delete_spacy_model(spacy_nlp_pipeline_model_id):
return resonse_data, 202
@bp.route('/spacy-nlp-pipeline-models<hashid:spacy_nlp_pipeline_model_id>/is_public', methods=['PUT'])
@bp.route('/spacy-nlp-pipeline-models/<hashid:spacy_nlp_pipeline_model_id>/is_public', methods=['PUT'])
@login_required
@permission_required('CONTRIBUTE')
@content_negotiation(consumes='application/json', produces='application/json')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment