diff --git a/src/api/mod.rs b/src/api/mod.rs index 1e5e90a..a2a2956 100644 --- a/src/api/mod.rs +++ b/src/api/mod.rs @@ -96,7 +96,7 @@ pub struct Header { weekdays: HashMap>, } -pub async fn get_class(Query(params): Query) -> impl IntoResponse { +pub async fn get_teacher(Query(params): Query) -> impl IntoResponse { let filename = match download_pdf(params.id).await { Ok(x) => x, Err(_) => { @@ -138,7 +138,7 @@ pub struct FilterByClassQuery { classe: String, } -pub async fn get_teacher(Query(params): Query) -> impl IntoResponse { +pub async fn get_class(Query(params): Query) -> impl IntoResponse { let filename = match download_pdf(params.id).await { Ok(x) => x, Err(_) => {