use crate::contracts::support::Responsable;
use crate::http::{Request, Response};
#[allow(async_fn_in_trait)]
pub trait Controller: Send + Sync {
async fn index(&self, _req: Request) -> impl Responsable {
Response::not_implemented().text("501 Not Implemented: index")
}
async fn create(&self, _req: Request) -> impl Responsable {
Response::not_implemented().text("501 Not Implemented: create")
}
async fn store(&self, _req: Request) -> impl Responsable {
Response::not_implemented().text("501 Not Implemented: store")
}
async fn show(&self, _req: Request) -> impl Responsable {
Response::not_implemented().text("501 Not Implemented: show")
}
async fn edit(&self, _req: Request) -> impl Responsable {
Response::not_implemented().text("501 Not Implemented: edit")
}
async fn update(&self, _req: Request) -> impl Responsable {
Response::not_implemented().text("501 Not Implemented: update")
}
async fn destroy(&self, _req: Request) -> impl Responsable {
Response::not_implemented().text("501 Not Implemented: destroy")
}
}