From b6f9d2697e7eda514fb6cabd9a2588fc2593e703 Mon Sep 17 00:00:00 2001 From: Sudo-JHare Date: Tue, 13 May 2025 15:38:02 +1000 Subject: [PATCH] Update app.py --- app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 5974120..ed149d3 100644 --- a/app.py +++ b/app.py @@ -1277,7 +1277,7 @@ with app.app_context(): class FhirRequestForm(FlaskForm): submit = SubmitField('Send Request') -@app.route('/fhir') +@app.route('/fhir-ui') def fhir_ui(): form = FhirRequestForm() return render_template('fhir_ui.html', form=form, site_name='FHIRFLARE IG Toolkit', now=datetime.datetime.now(), app_mode=app.config['APP_MODE']) @@ -1291,6 +1291,7 @@ def fhir_ui_operations(): # Use a single route to capture everything after /fhir/ # The 'path' converter handles slashes. 'subpath' can be empty. +@app.route('/fhir', defaults={'subpath': ''}, methods=['GET', 'POST', 'PUT', 'DELETE']) @app.route('/fhir/', defaults={'subpath': ''}, methods=['GET', 'POST', 'PUT', 'DELETE']) @app.route('/fhir/', methods=['GET', 'POST', 'PUT', 'DELETE']) def proxy_hapi(subpath):