Skip to content

Commit 480a7e4

Browse files
committed
Modified URLs for CLEM preprocesisng API endpoints
1 parent f7681c9 commit 480a7e4

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/murfey/client/contexts/clem.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ def process_lif_file(
386386

387387
try:
388388
# Construct the URL to post the request to
389-
url = f"{str(environment.url.geturl())}/sessions/{environment.murfey_session}/lif_to_stack?lif_file={quote(str(lif_file), safe='')}"
389+
url = f"{str(environment.url.geturl())}/sessions/{environment.murfey_session}/clem/preprocessing/lif_to_stack?lif_file={quote(str(lif_file), safe='')}"
390390
# Validate
391391
if not url:
392392
logger.error(
@@ -442,7 +442,7 @@ def process_tiff_series(
442442

443443
try:
444444
# Construct URL for Murfey server to communicate with
445-
url = f"{str(environment.url.geturl())}/sessions/{environment.murfey_session}/tiff_to_stack"
445+
url = f"{str(environment.url.geturl())}/sessions/{environment.murfey_session}/clem/preprocessing/tiff_to_stack"
446446
if not url:
447447
logger.error(
448448
"URL could not be constructed from the environment and file path"

src/murfey/server/api/clem.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,9 @@ def register_image_stack(
631631
"""
632632

633633

634-
@router.post("/sessions/{session_id}/lif_to_stack") # API posts to this URL
634+
@router.post(
635+
"/sessions/{session_id}/clem/preprocessing/lif_to_stack"
636+
) # API posts to this URL
635637
def lif_to_stack(
636638
session_id: int, # Used by the decorator
637639
lif_file: Path,
@@ -669,7 +671,7 @@ def lif_to_stack(
669671
raise RuntimeError("The relevant Murfey workflow was not found")
670672

671673

672-
@router.post("/sessions/{session_id}/tiff_to_stack")
674+
@router.post("/sessions/{session_id}/clem/preprocessing/tiff_to_stack")
673675
def tiff_to_stack(
674676
session_id: int, # Used by the decorator
675677
tiff_info: TIFFSeriesInfo,

0 commit comments

Comments
 (0)