summaryrefslogtreecommitdiffstats
path: root/src/routes/admin.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/admin.rs')
-rw-r--r--src/routes/admin.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes/admin.rs b/src/routes/admin.rs
index ccca2de..7ba63ac 100644
--- a/src/routes/admin.rs
+++ b/src/routes/admin.rs
@@ -19,7 +19,7 @@ pub async fn get_dashboard(session: &Session, critch: Data<&Critch>) -> Result<R
if let Some(true) = session.get("is_admin") {
let comments = critch.db.comments().read_all().await?;
let artworks = critch.db.artworks().read_all().await?;
- return Ok(render!(templates::admin_dashboard_html).into_response());
+ return Ok(render!(templates::admin_dashboard_html, artworks).into_response());
} else {
return Ok(Redirect::see_other("/admin/login").into_response());
}