forked from open-webui/open-webui
refac: convert str var to f-string
This commit is contained in:
parent
5b26d2a686
commit
d2c5f3d591
4 changed files with 14 additions and 9 deletions
|
@ -14,7 +14,7 @@ from apps.openai.main import app as openai_app
|
|||
from apps.web.main import app as webui_app
|
||||
from apps.rag.main import app as rag_app
|
||||
|
||||
from config import ENV, WEB_DIR
|
||||
from config import ENV, FRONTEND_BUILD_DIR
|
||||
|
||||
|
||||
class SPAStaticFiles(StaticFiles):
|
||||
|
@ -58,4 +58,8 @@ app.mount("/openai/api", openai_app)
|
|||
app.mount("/rag/api/v1", rag_app)
|
||||
|
||||
|
||||
app.mount("/", SPAStaticFiles(directory=str(WEB_DIR), html=True), name="spa-static-files")
|
||||
app.mount(
|
||||
"/",
|
||||
SPAStaticFiles(directory=str(FRONTEND_BUILD_DIR), html=True),
|
||||
name="spa-static-files",
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue