actix_route_config/lib.rs
1//! Allow clean configuration of Actix Web routes.
2
3use actix_web::web::ServiceConfig;
4
5/// Trait indicating that the object can route web requests.
6pub trait Routable {
7 /// Configure the service with the information from the this router.
8 fn configure(_config: &mut ServiceConfig) {}
9
10 /// Configure the service with access to `self`.
11 fn configure_non_static(&self, _config: &mut ServiceConfig) {}
12}