fix: add /swagger to tabby ui handler

release-notes-05
Meng Zhang 2023-10-30 17:36:15 -07:00
parent 73758e207d
commit 3f1f8bfd30
1 changed files with 2 additions and 4 deletions

View File

@ -41,10 +41,8 @@ pub async fn handler(uri: Uri) -> impl IntoResponse {
path = "index.html".to_owned() path = "index.html".to_owned()
} else if path == "playground" { } else if path == "playground" {
path = "playground.html".to_owned(); path = "playground.html".to_owned();
} else if path == "dashboard/home" { } else if path == "swagger" {
path = "dashboard/home.html".to_owned(); path = "swagger.html".to_owned();
} else if path == "dashboard/runners" {
path = "dashboard/runners.html".to_owned();
} }
WebStaticFile(path) WebStaticFile(path)
} }