use std::sync::Arc;

use axum::{
    routing::{delete, get, post, put},
    Router,
};

use crate::models::error::ApiResult;
use crate::AppState;

pub fn router() -> Router<Arc<AppState>> {
    Router::new()
        .route("/", get(list_schedules))
        .route("/", post(create_schedule))
        .route("/{id}", get(get_schedule))
        .route("/{id}", put(update_schedule))
        .route("/{id}", delete(delete_schedule))
        .route("/{id}/toggle", post(toggle_schedule))
        .route("/calendar", get(get_calendar))
        .route("/conflicts", get(get_conflicts))
}

async fn list_schedules() -> ApiResult<impl axum::response::IntoResponse> {
    todo!()
}

async fn create_schedule() -> ApiResult<impl axum::response::IntoResponse> {
    todo!()
}

async fn get_schedule() -> ApiResult<impl axum::response::IntoResponse> {
    todo!()
}

async fn update_schedule() -> ApiResult<impl axum::response::IntoResponse> {
    todo!()
}

async fn delete_schedule() -> ApiResult<impl axum::response::IntoResponse> {
    todo!()
}

async fn toggle_schedule() -> ApiResult<impl axum::response::IntoResponse> {
    todo!()
}

async fn get_calendar() -> ApiResult<impl axum::response::IntoResponse> {
    todo!()
}

async fn get_conflicts() -> ApiResult<impl axum::response::IntoResponse> {
    todo!()
}
