Skip to content

Commit c18c782

Browse files
committed
Fix for instrument card display now that the whole machine configuration is pulled by the server
1 parent 66a424d commit c18c782

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/murfey/server/api/display.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
machine_config = get_machine_config()
1414

1515

16-
@router.get("/microscope_image/")
17-
def get_mic_image():
18-
if machine_config.image_path:
19-
return FileResponse(machine_config.image_path)
16+
@router.get("/instruments/{instrument_name}/image/")
17+
def get_mic_image(instrument_name: str):
18+
if machine_config[instrument_name].image_path:
19+
return FileResponse(machine_config[instrument_name].image_path)
2020
return None
2121

2222

0 commit comments

Comments
 (0)