neveko/nevmes-contact/src/main.rs

23 lines
657 B
Rust
Raw Normal View History

2023-04-30 15:55:41 +00:00
#[macro_use]
extern crate rocket;
use nevmes_contact::*;
use nevmes_core::*;
// The only changes in here should be mounting new controller methods
#[launch]
async fn rocket() -> _ {
let config = rocket::Config {
port: utils::get_app_contact_port(),
..rocket::Config::debug_default()
};
env_logger::init();
log::info!("nevmes-contact is online");
rocket::custom(&config)
.mount("/trust", routes![controller::trust_contact])
.mount("/prove", routes![controller::prove_payment])
2023-04-30 15:55:41 +00:00
.mount("/contact", routes![controller::add_contact])
.mount("/contacts", routes![controller::get_contacts])
}