diff --git a/src/bin/sportshub.rs b/src/bin/sportshub.rs index ae9c30b..a166e33 100644 --- a/src/bin/sportshub.rs +++ b/src/bin/sportshub.rs @@ -2,7 +2,7 @@ use anyhow::Error; use clap::{Parser, Subcommand}; use diesel::sqlite::Sqlite; use diesel_migrations::{embed_migrations, EmbeddedMigrations, MigrationHarness}; -use scraper::{db, scrape, web_server_utils}; +use scraper::{db, scrape, web_server_routes}; #[derive(Parser)] @@ -123,7 +123,7 @@ async fn main() { if full_refresh { scrape::start_scraping(10, true).unwrap(); } - web_server_utils::run(port, silent).await.unwrap(); + web_server_routes::run(port, silent).await.unwrap(); } None => { println!("use sportshub -h for help"); diff --git a/src/lib.rs b/src/lib.rs index e61f57e..07aa2fa 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,7 +4,7 @@ pub mod db; pub mod query_selectors; pub mod scrape; pub mod scrape_utils; -pub mod web_server_utils; +pub mod web_server_routes; #[macro_use] extern crate diesel; diff --git a/src/web_server_utils.rs b/src/web_server_routes.rs similarity index 100% rename from src/web_server_utils.rs rename to src/web_server_routes.rs