mirror of
https://github.com/nullishamy/ferri.git
synced 2025-06-28 09:04:18 +00:00
feat: http wrapper, start type rewrite, add nextest
This commit is contained in:
parent
9bc6c12392
commit
d59660da37
18 changed files with 369 additions and 144 deletions
|
@ -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!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue