Skip to content

Instantly share code, notes, and snippets.

@Mr-Malomz
Created October 21, 2022 15:46
Show Gist options
  • Save Mr-Malomz/656a5774751f79515069d50f924b9da7 to your computer and use it in GitHub Desktop.
Save Mr-Malomz/656a5774751f79515069d50f924b9da7 to your computer and use it in GitHub Desktop.
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