Skip to content

Commit

Permalink
feat: server & build
Browse files Browse the repository at this point in the history
  • Loading branch information
BukiOffor committed Mar 17, 2024
1 parent d48b185 commit 4576566
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use handlers::api::{
generate_did_by_morpheus,sign_witness_statement,
verify_signed_statement,generate_nonce,get_morpheus_vault,
get_hyd_vault, get_new_acc_on_vault,
// validate_statement_with_did,
validate_statement_with_did,
};
use log::LevelFilter;

Expand All @@ -16,7 +16,7 @@ use log::LevelFilter;
async fn main() -> std::io::Result<()> {
env_logger::builder().filter_level(LevelFilter::Info).init();
log::info!("server initialized and running at port 8088");
log::info!("Running server at http://127.0.0.1:8088");
log::info!("Running server at http://0.0.0.0:8088");
HttpServer::new(move || {
App::new()
.service(generate_phrase)
Expand All @@ -30,9 +30,9 @@ async fn main() -> std::io::Result<()> {
.service(get_morpheus_vault)
.service(get_hyd_vault)
.service(get_new_acc_on_vault)
// .service(validate_statement_with_did)
.service(validate_statement_with_did)
})
.bind("127.0.0.1:8088")?
.bind("0.0.0.0:8088")?
.run()
.await
}

0 comments on commit 4576566

Please sign in to comment.