Skip to content

Commit 0794a3d

Browse files
committed
fixed 404 error when directly navigating to site
1 parent 1a70815 commit 0794a3d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/server.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ pub async fn main() -> Result<()> {
9898
.service(api::scope())
9999
.route("/", web::get().to(serve_index))
100100
.route("/history", web::get().to(serve_index))
101+
.route("/{id}", web::get().to(serve_index))
102+
.route("/history/{id}", web::get().to(serve_index))
103+
.route("/event/{id}", web::get().to(serve_index))
101104
.route("/login", web::get().to(serve_index))
102105
.route("/{filename:.*}", web::get().to(serve_file))
103106
})

0 commit comments

Comments
 (0)