mirror of
https://github.com/actix/actix-website
synced 2025-06-27 15:39:02 +02:00
remove unusable create_app example
This commit is contained in:
@ -1,20 +0,0 @@
|
||||
// <config>
|
||||
use actix_service::ServiceFactory;
|
||||
use actix_web::dev::{MessageBody, ServiceRequest, ServiceResponse};
|
||||
use actix_web::{web, App, Error, HttpResponse};
|
||||
|
||||
fn create_app() -> App<
|
||||
impl ServiceFactory<
|
||||
Config = (),
|
||||
Request = ServiceRequest,
|
||||
Response = ServiceResponse<impl MessageBody>,
|
||||
Error = Error,
|
||||
>,
|
||||
impl MessageBody,
|
||||
> {
|
||||
App::new().service(
|
||||
web::scope("/app")
|
||||
.route("/index.html", web::get().to(|| HttpResponse::Ok())),
|
||||
)
|
||||
}
|
||||
// </config>
|
@ -3,7 +3,6 @@ use actix_web::{web, App, HttpResponse, HttpServer};
|
||||
pub mod app;
|
||||
pub mod combine;
|
||||
pub mod config;
|
||||
pub mod config_app;
|
||||
pub mod scope;
|
||||
pub mod state;
|
||||
pub mod vh;
|
||||
|
Reference in New Issue
Block a user