2019-06-20 00:00:31 +02:00
|
|
|
use actix_web::{web, App, HttpResponse};
|
2018-05-23 21:28:12 +02:00
|
|
|
|
2019-06-19 06:20:50 +02:00
|
|
|
pub mod app;
|
|
|
|
pub mod combine;
|
2019-06-20 00:00:31 +02:00
|
|
|
pub mod config;
|
|
|
|
pub mod scope;
|
2019-06-19 06:20:50 +02:00
|
|
|
pub mod state;
|
|
|
|
pub mod vh;
|
2018-05-23 22:01:33 +02:00
|
|
|
|
2019-06-13 09:24:25 +02:00
|
|
|
#[rustfmt::skip]
|
2019-06-20 00:00:31 +02:00
|
|
|
// <multi>
|
2018-05-23 21:28:12 +02:00
|
|
|
fn main() {
|
2019-06-20 00:00:31 +02:00
|
|
|
App::new()
|
|
|
|
.service(
|
|
|
|
web::scope("/app1")
|
|
|
|
.route("/", web::to(|| HttpResponse::Ok())))
|
|
|
|
.service(
|
|
|
|
web::scope("/app2")
|
|
|
|
.route("/", web::to(|| HttpResponse::Ok())))
|
|
|
|
.route("/", web::to(|| HttpResponse::Ok()));
|
2018-05-23 21:28:12 +02:00
|
|
|
}
|
2019-06-20 00:00:31 +02:00
|
|
|
// </multi>
|