Skip to content

Commit

Permalink
adjust the route of site analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
huangcheng committed Dec 15, 2023
1 parent 4bfd927 commit ace3e2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/site.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ pub async fn delete(
Ok(())
}

#[post("/visit/<id>")]
#[post("/<id>/visit")]
pub async fn analytics(id: &str, mut db: Connection<MySQLDb>) -> Result<(), Status> {
site::analytics(id, &mut db).await.map_err(|e| {
error!("{}", e);
Expand Down

0 comments on commit ace3e2c

Please sign in to comment.