]> Untitled Git - lemmy.git/blob - server/src/routes/mod.rs
Proxy pictrs requests through Lemmy (fixes #371) (#77)
[lemmy.git] / server / src / routes / mod.rs
1 pub mod api;
2 pub mod federation;
3 pub mod feeds;
4 pub mod images;
5 pub mod index;
6 pub mod nodeinfo;
7 pub mod webfinger;
8 pub mod websocket;
9
10 use crate::{rate_limit::rate_limiter::RateLimiter, websocket::server::ChatServer};
11 use actix::prelude::*;
12 use actix_web::*;
13 use diesel::{
14   r2d2::{ConnectionManager, Pool},
15   PgConnection,
16 };
17 use std::sync::{Arc, Mutex};
18
19 pub type DbPoolParam = web::Data<Pool<ConnectionManager<PgConnection>>>;
20 pub type RateLimitParam = web::Data<Arc<Mutex<RateLimiter>>>;
21 pub type ChatServerParam = web::Data<Addr<ChatServer>>;