mirror of
https://github.com/perstarkse/minne.git
synced 2026-04-01 07:03:10 +02:00
refactor: additional responsibilities to middleware, simplified handlers
fix
This commit is contained in:
@@ -65,3 +65,9 @@ impl ProvidesTemplateEngine for HtmlState {
|
||||
&self.templates
|
||||
}
|
||||
}
|
||||
|
||||
impl crate::middlewares::response_middleware::ProvidesHtmlState for HtmlState {
|
||||
fn html_state(&self) -> &HtmlState {
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user