Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "ad_sdl.wei"
version = "0.7.0"
version = "0.7.1"
description = "The Rapid Prototyping Laboratory's Workflow Execution Interface."
authors = [
{name = "Rafael Vescovi", email = "ravescovi@anl.gov"},
Expand Down
5 changes: 4 additions & 1 deletion src/wei/server.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""The server that takes incoming WEI flow requests from the experiment application"""

from contextlib import asynccontextmanager
from pathlib import Path
from typing import Dict

from fastapi import FastAPI
Expand Down Expand Up @@ -49,7 +50,9 @@ async def lifespan(app: FastAPI) -> None: # type: ignore[misc]
app.include_router(module_routes.router, prefix="/modules")
app.include_router(workcell_routes.router, prefix="/workcells")
app.include_router(workcell_routes.router, prefix="/wc")
app.mount("/", StaticFiles(directory="wei/src/ui/dist", html=True))
ui_files_path = Path("wei") / "src" / "ui" / "dist"
if ui_files_path.exists():
app.mount("/", StaticFiles(directory=ui_files_path, html=True))
EventHandler.initialize_diaspora()

if Config.autostart_engine:
Expand Down