mirror of
https://github.com/Xevion/banner.git
synced 2025-12-11 08:06:37 -06:00
feat: by CRN querying, redis caching, fixed deserialization, gcal integration
This commit is contained in:
@@ -46,6 +46,10 @@ async fn main() {
|
||||
// Create BannerApi and AppState
|
||||
let banner_api =
|
||||
BannerApi::new(config.banner_base_url.clone()).expect("Failed to create BannerApi");
|
||||
banner_api
|
||||
.setup()
|
||||
.await
|
||||
.expect("Failed to set up BannerApi session");
|
||||
|
||||
let app_state =
|
||||
AppState::new(banner_api, &config.redis_url).expect("Failed to create AppState");
|
||||
|
||||
Reference in New Issue
Block a user