use lemmy_api::match_websocket_operation;
use lemmy_apub::activity_queue::create_activity_queue;
use lemmy_db_queries::get_database_url_from_env;
-use lemmy_server::{code_migrations::run_advanced_migrations, routes::*, scheduled_tasks};
+use lemmy_routes::{feeds, images, nodeinfo, webfinger};
+use lemmy_server::{code_migrations::run_advanced_migrations, scheduled_tasks};
use lemmy_structs::blocking;
use lemmy_utils::{
rate_limit::{rate_limiter::RateLimiter, RateLimit},
.wrap(middleware::Logger::default())
.data(context)
// The routes
- .configure(|cfg| api::config(cfg, &rate_limiter))
- .configure(federation::config)
+ .configure(|cfg| lemmy_api::routes::config(cfg, &rate_limiter))
+ .configure(lemmy_apub::routes::config)
.configure(feeds::config)
.configure(|cfg| images::config(cfg, &rate_limiter))
.configure(nodeinfo::config)