Skip to content

Commit

Permalink
Merge pull request #37 from peb-adr/backend-route
Browse files Browse the repository at this point in the history
fix media file retrieval
  • Loading branch information
emanuelschuetze committed Nov 25, 2021
2 parents 7f200ea + 74ad971 commit 0799fe3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ def check_file_id(file_id, file_type, app, presenter_headers):
def get_presenter_url(app):
presenter_host = app.config["PRESENTER_HOST"]
presenter_port = app.config["PRESENTER_PORT"]
return f"http://{presenter_host}:{presenter_port}/system/presenter"
return f"http://{presenter_host}:{presenter_port}/system/presenter/handle_request"
2 changes: 1 addition & 1 deletion tests/dummy_presenter/dummy_presenter.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


# for testing
@app.route("/system/presenter", methods=["POST"])
@app.route("/system/presenter/handle_request", methods=["POST"])
def dummy_presenter():
app.logger.debug(f"dummy_presenter gets: {request.json}")
if request.json[0]["presenter"] == "check_mediafile_id":
Expand Down

0 comments on commit 0799fe3

Please sign in to comment.