We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66a424d commit c18c782Copy full SHA for c18c782
src/murfey/server/api/display.py
@@ -13,10 +13,10 @@
13
machine_config = get_machine_config()
14
15
16
-@router.get("/microscope_image/")
17
-def get_mic_image():
18
- if machine_config.image_path:
19
- return FileResponse(machine_config.image_path)
+@router.get("/instruments/{instrument_name}/image/")
+def get_mic_image(instrument_name: str):
+ if machine_config[instrument_name].image_path:
+ return FileResponse(machine_config[instrument_name].image_path)
20
return None
21
22
0 commit comments