feat: cache for posts list

This commit is contained in:
2022-03-25 03:00:38 +08:00
parent 9dbb02a838
commit 38bacc1ee0
7 changed files with 208 additions and 48 deletions

View File

@@ -1,8 +1,8 @@
use crate::api::{CurrentUser, API};
use crate::db_conn::Db;
use crate::random_hasher::RandomHasher;
use rocket::serde::json::{json, Value};
use rocket::State;
use crate::db_conn::Db;
#[get("/systemlog")]
pub async fn get_systemlog(user: CurrentUser, rh: &State<RandomHasher>, db: Db) -> API<Value> {