This commit is contained in:
parent
0f35d34bcb
commit
49103085f7
3 changed files with 16 additions and 35 deletions
|
@ -7,6 +7,7 @@ async fn index(req: HttpRequest) -> impl Responder {
|
|||
let path = req.path();
|
||||
let p: &actix_web::web::Data<Mirror> = req.app_data().unwrap();
|
||||
|
||||
// todo : test
|
||||
if path == "/" {
|
||||
if let Some(ret) = p.index_page() {
|
||||
return ret;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue