feat: move scraper into separate module, begin building data models

This commit is contained in:
2025-08-29 11:07:46 -05:00
parent e734e40347
commit 4764d48ac9
10 changed files with 146 additions and 329 deletions

View File

@@ -5,11 +5,12 @@ use serde_json::{Value, json};
use std::sync::Arc;
use tracing::info;
use crate::banner::BannerApi;
/// Shared application state for web server
#[derive(Clone)]
pub struct BannerState {
pub api: Arc<crate::banner::BannerApi>,
pub scraper: Arc<crate::banner::scraper::CourseScraper>,
pub api: Arc<BannerApi>,
}
/// Creates the web server router