contact form should work now?

This commit is contained in:
Chris Cochrun 2025-01-28 15:14:09 -06:00
parent bbd0e363b4
commit 5758185518
2 changed files with 4 additions and 2 deletions

View file

@ -115,8 +115,8 @@ impl ContactForm {
}
}
#[post("/api/mt-parent-form")]
pub async fn mt_parent_form(MultipartForm(mut form): MultipartForm<ContactForm>) -> HttpResponse {
#[post("/api/contact-form")]
pub async fn contact_form(MultipartForm(mut form): MultipartForm<ContactForm>) -> HttpResponse {
// match form.store_form().await {
// Ok(_) => info!("Successfully sent form to nextcloud!"),
// Err(e) => error!("There was an erroring sending form to nextcloud: {e}"),

View file

@ -7,6 +7,7 @@ use actix_web::body::MessageBody;
use actix_web::dev::{ServiceRequest, ServiceResponse};
use actix_web::{web, App, Error, HttpServer};
use api::camp_form::camp_form;
use api::contact::{self, contact_form};
use api::health_form::health_form;
use api::local_trip_form::local_form;
use api::mt_form::mt_form;
@ -95,6 +96,7 @@ async fn main() -> std::io::Result<()> {
.service(mt_church_form)
.service(local_form)
.service(camp_form)
.service(contact_form)
.service(Files::new("/", "./public").index_file("index.html"))
})
.bind(("localhost", 4242))?