mirror of
https://github.com/n08i40k/schedule-parser-rusted.git
synced 2025-12-06 17:57:47 +03:00
10 lines
297 B
Rust
10 lines
297 B
Rust
use crate::routes::schedule::schema::ScheduleView;
|
|
use crate::state::AppState;
|
|
use actix_web::{get, web};
|
|
|
|
#[utoipa::path(responses((status = OK, body = ScheduleView)))]
|
|
#[get("/")]
|
|
pub async fn schedule(app_state: web::Data<AppState>) -> ScheduleView {
|
|
ScheduleView::from(&app_state).await
|
|
}
|