setup for api posting to db
This commit is contained in:
parent
0330876377
commit
308c4fb9c5
4 changed files with 33 additions and 1 deletions
|
@ -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(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue