Created
October 21, 2022 15:46
-
-
Save Mr-Malomz/656a5774751f79515069d50f924b9da7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use actix_web::{App, HttpServer}; //add | |
use handlers::{send_otp, verify_otp}; //add | |
mod handlers; | |
mod models; | |
mod services; | |
//add | |
#[actix_web::main] | |
async fn main() -> std::io::Result<()> { | |
HttpServer::new(move || App::new().service(send_otp).service(verify_otp)) | |
.bind(("127.0.0.1", 8080))? | |
.run() | |
.await | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment