fix(api): swap api function names to correct incorrect naming
This commit is contained in:
parent
d3d9f04a2c
commit
864f7fab30
@ -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(_) => {
|
||||
|
Loading…
Reference in New Issue
Block a user