mirror of
https://github.com/actix/actix-website
synced 2024-11-27 18:12:57 +01:00
Moves everything into the cargo workspace.
This commit is contained in:
parent
0601997b41
commit
4833874c5d
@ -19,12 +19,12 @@ members = [
|
||||
"middleware",
|
||||
"static-files",
|
||||
"http2",
|
||||
]
|
||||
exclude = [
|
||||
"testing",
|
||||
"async-handlers",
|
||||
"websockets",
|
||||
"request-handlers",
|
||||
]
|
||||
exclude = [
|
||||
"og_databases",
|
||||
"sentry",
|
||||
]
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
// <compress>
|
||||
use actix_web::{http::ContentEncoding, middleware, HttpResponse};
|
||||
use actix_web::{middleware, HttpResponse};
|
||||
|
||||
fn index_br() -> HttpResponse {
|
||||
HttpResponse::Ok().body("data")
|
||||
|
Loading…
Reference in New Issue
Block a user