feat(core): add raw db statisics endpoint for admin panel

This commit is contained in:
Paul Makles
2023-03-04 11:18:05 +00:00
parent ce77e926a5
commit 6bd8221eda
10 changed files with 249 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
use crate::{models::stats::Stats, AbstractStats, Result};
use super::super::DummyDb;
#[async_trait]
impl AbstractStats for DummyDb {
async fn generate_stats(&self) -> Result<Stats> {
todo!()
}
}

View File

@@ -2,6 +2,7 @@ use crate::AbstractDatabase;
pub mod admin {
pub mod migrations;
pub mod stats;
}
pub mod media {