diff options
author | Dessalines <tyhou13@gmx.com> | 2020-04-19 18:08:25 -0400 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2020-04-19 18:08:25 -0400 |
commit | f300c67a4d9674eef05d180a787cc8352092903d (patch) | |
tree | 49d076d128d065403f5690f92900bdd0679f2d66 /server/src/routes/nodeinfo.rs | |
parent | be6a7876b49e8f963506f0b05e12495f119afc10 (diff) |
Adding websocket notification system.
- HTTP and APUB clients can now send live updating messages to websocket
clients
- Rate limiting now affects both HTTP and websockets
- Rate limiting / Websocket logic is now moved into the API Perform
functions.
- TODO This broke getting current online users, but that will have to
wait for the perform trait to be made async.
- Fixes #446
Diffstat (limited to 'server/src/routes/nodeinfo.rs')
-rw-r--r-- | server/src/routes/nodeinfo.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/server/src/routes/nodeinfo.rs b/server/src/routes/nodeinfo.rs index 1263cef8..829d56b1 100644 --- a/server/src/routes/nodeinfo.rs +++ b/server/src/routes/nodeinfo.rs @@ -1,12 +1,4 @@ -use crate::db::site_view::SiteView; -use crate::version; -use crate::Settings; -use actix_web::body::Body; -use actix_web::web; -use actix_web::HttpResponse; -use diesel::r2d2::{ConnectionManager, Pool}; -use diesel::PgConnection; -use serde::Serialize; +use super::*; pub fn config(cfg: &mut web::ServiceConfig) { cfg |