2022-10-26 00:23:55 +00:00
|
|
|
mod routes;
|
|
|
|
mod states;
|
|
|
|
|
|
|
|
use rocket_dyn_templates::Template;
|
|
|
|
|
|
|
|
#[rocket::launch]
|
|
|
|
fn rocket() -> _ {
|
|
|
|
rocket::build()
|
2022-10-27 16:44:40 +00:00
|
|
|
.mount(
|
|
|
|
"/contact-form",
|
|
|
|
rocket::routes![routes::index, routes::submit, routes::success],
|
|
|
|
)
|
2022-10-26 00:23:55 +00:00
|
|
|
.manage(states::SharedCaptchaSolutions::new())
|
|
|
|
.attach(Template::fairing())
|
|
|
|
}
|