mirror of
https://github.com/actix/actix-website
synced 2025-06-29 16:24:58 +02:00
Moves everything into the cargo workspace.
This commit is contained in:
@ -22,12 +22,11 @@ fn index(_req: HttpRequest) -> Result<&'static str, MyError> {
|
||||
// </response-error>
|
||||
|
||||
pub fn main() {
|
||||
// use actix_web::{web, App, HttpServer};
|
||||
use actix_web::{web, App, HttpServer};
|
||||
|
||||
// HttpServer::new(|| App::new().route("/", web::get().to(index)))
|
||||
// .bind("127.0.0.1:8088")
|
||||
// .unwrap()
|
||||
// .run()
|
||||
// .unwrap();
|
||||
recommend_two::main();
|
||||
HttpServer::new(|| App::new().route("/", web::get().to(index)))
|
||||
.bind("127.0.0.1:8088")
|
||||
.unwrap()
|
||||
.run()
|
||||
.unwrap();
|
||||
}
|
||||
|
Reference in New Issue
Block a user