fix(api): swap api function names to correct incorrect naming

This commit is contained in:
Mariano Riefolo 2024-09-03 16:09:25 +02:00
parent d3d9f04a2c
commit 864f7fab30

View File

@ -96,7 +96,7 @@ pub struct Header {
weekdays: HashMap<String, Range<usize>>,
}
pub async fn get_class(Query(params): Query<FilterByTeacherQuery>) -> impl IntoResponse {
pub async fn get_teacher(Query(params): Query<FilterByTeacherQuery>) -> 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<FilterByClassQuery>) -> impl IntoResponse {
pub async fn get_class(Query(params): Query<FilterByClassQuery>) -> impl IntoResponse {
let filename = match download_pdf(params.id).await {
Ok(x) => x,
Err(_) => {