Skip to content

Commit 6f58338

Browse files
committed
Removed trailing slashes of endpoints
1 parent 057fb5e commit 6f58338

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ExonCov/api_views.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def sample_by_id_api(sample_id):
4444
return jsonify(result)
4545

4646

47-
@app.route('/api/samples/')
47+
@app.route('/api/samples')
4848
@token_required
4949
def get_samples_api():
5050
sample_name = request.args.get('sample_name') or ''
@@ -63,7 +63,7 @@ def get_samples_api():
6363
return jsonify(samples_list)
6464

6565

66-
@app.route('/api/sample/<sample_name>/run/<run_id>/')
66+
@app.route('/api/sample/<sample_name>/run/<run_id>')
6767
@token_required
6868
def get_summary_by_sample_name_and_run_id_api(sample_name, run_id):
6969
samples = get_samples_by_like_sample_name_or_like_run_id(sample_name, run_id)
@@ -73,14 +73,14 @@ def get_summary_by_sample_name_and_run_id_api(sample_name, run_id):
7373
return jsonify(samples_list)
7474

7575

76-
@app.route('/api/samples/name/<sample_name>/')
76+
@app.route('/api/samples/name/<sample_name>')
7777
@token_required
7878
def get_sample_by_sample_name_api(sample_name):
7979
sample = get_sample_by_sample_name(sample_name)
8080
return jsonify(model_to_dict(sample))
8181

8282

83-
@app.route('/api/sample/run/<run_id>/')
83+
@app.route('/api/sample/run/<run_id>')
8484
@token_required
8585
def get_summary_by_run_id_api(run_id):
8686
samples = get_sample_by_like_run_id(run_id)

0 commit comments

Comments
 (0)