修改asset_index位置
This commit is contained in:
@ -166,7 +166,7 @@ pub async fn asset(req: HttpRequest) -> impl Responder {
|
||||
if req.path() == "/" {
|
||||
return HttpResponse::Ok()
|
||||
.insert_header(ContentType::html())
|
||||
.body(include_file!("webui/dist/asset_index.html"));
|
||||
.body(include_file!("src/web/asset_index.html"));
|
||||
}
|
||||
|
||||
let path = req.path();
|
||||
|
12
src/web/asset_index.html
Normal file
12
src/web/asset_index.html
Normal file
@ -0,0 +1,12 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>EW private server</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root">Asset Http Server</div>
|
||||
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user