Cleanup
This commit is contained in:
@@ -39,7 +39,6 @@ mod db {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub mod endpoint {
|
pub mod endpoint {
|
||||||
// TODO: Implement this
|
|
||||||
pub async fn queue(
|
pub async fn queue(
|
||||||
axum::Extension(pool): axum::Extension<sqlx::PgPool>,
|
axum::Extension(pool): axum::Extension<sqlx::PgPool>,
|
||||||
mut multipart: axum::extract::Multipart,
|
mut multipart: axum::extract::Multipart,
|
||||||
@@ -49,7 +48,6 @@ pub mod endpoint {
|
|||||||
) {
|
) {
|
||||||
let mut response = super::response::Response::default();
|
let mut response = super::response::Response::default();
|
||||||
|
|
||||||
// while let Some(field) = multipart.next_field().await.unwrap() {
|
|
||||||
match multipart.next_field().await {
|
match multipart.next_field().await {
|
||||||
Ok(Some(field)) => {
|
Ok(Some(field)) => {
|
||||||
let name = field.name().unwrap().to_string();
|
let name = field.name().unwrap().to_string();
|
||||||
@@ -77,10 +75,6 @@ pub mod endpoint {
|
|||||||
(axum::http::StatusCode::BAD_REQUEST, axum::Json(response))
|
(axum::http::StatusCode::BAD_REQUEST, axum::Json(response))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Save the file to disk
|
|
||||||
// let mut file = std::fs::File::create(&file_name).unwrap();
|
|
||||||
// file.write_all(&data).unwrap();
|
|
||||||
}
|
}
|
||||||
Ok(None) => {
|
Ok(None) => {
|
||||||
(axum::http::StatusCode::BAD_REQUEST, axum::Json(response))
|
(axum::http::StatusCode::BAD_REQUEST, axum::Json(response))
|
||||||
|
|||||||
Reference in New Issue
Block a user