setup for api posting to db

This commit is contained in:
Chris Cochrun 2024-06-25 06:51:22 -05:00
parent 0330876377
commit 308c4fb9c5
4 changed files with 33 additions and 1 deletions

View file

@ -6,6 +6,8 @@ use lettre::{
Message, SmtpTransport, Transport,
};
use super::errors::ApiError;
#[derive(Debug, MultipartForm, Default)]
struct CampForm {
#[multipart(rename = "first-name")]
@ -310,3 +312,7 @@ pub async fn camp_form(MultipartForm(form): MultipartForm<CampForm>) -> HttpResp
}
}
}
async fn store_camp_form(form: CampForm) -> Result<(), ApiError> {
Ok(())
}