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