fix: add /swagger to tabby ui handler
parent
73758e207d
commit
3f1f8bfd30
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue