feat: http wrapper, start type rewrite, add nextest

This commit is contained in:
nullishamy 2025-04-28 00:26:59 +01:00
parent 9bc6c12392
commit d59660da37
Signed by: amy
SSH key fingerprint: SHA256:WmV0uk6WgAQvDJlM8Ld4mFPHZo02CLXXP5VkwQ5xtyk
18 changed files with 369 additions and 144 deletions

View file

@ -33,11 +33,10 @@ pub struct TimelineStatus {
pub account: TimelineAccount,
}
#[get("/timelines/home?<_limit>")]
#[get("/timelines/home")]
pub async fn home(
mut db: Connection<Db>,
config: &State<Config>,
_limit: i64,
_user: AuthenticatedUser,
) -> Json<Vec<TimelineStatus>> {
let posts = sqlx::query!(