pub trait IController {
// Required methods
fn prefix(&self) -> String;
fn routes(&self) -> Vec<Box<dyn IRoute + Send + 'static>>;
fn middlewares(&self) -> Vec<MiddlewareFunction> ⓘ;
}
Expand description
Controller interface
pub trait IController {
// Required methods
fn prefix(&self) -> String;
fn routes(&self) -> Vec<Box<dyn IRoute + Send + 'static>>;
fn middlewares(&self) -> Vec<MiddlewareFunction> ⓘ;
}
Controller interface