22 lines
488 B
Rust
22 lines
488 B
Rust
|
|
use axum::{
|
||
|
|
Router,
|
||
|
|
routing::get,
|
||
|
|
http::StatusCode,
|
||
|
|
response::IntoResponse,
|
||
|
|
Json,
|
||
|
|
};
|
||
|
|
use serde_json::json;
|
||
|
|
|
||
|
|
use crate::common::di::AppState;
|
||
|
|
|
||
|
|
// Temporary placeholder implementation
|
||
|
|
pub fn caldav_routes() -> Router<AppState> {
|
||
|
|
Router::new()
|
||
|
|
.route("/placeholder", get(placeholder_handler))
|
||
|
|
}
|
||
|
|
|
||
|
|
async fn placeholder_handler() -> impl IntoResponse {
|
||
|
|
(StatusCode::OK, Json(json!({
|
||
|
|
"message": "CalDAV functionality is not yet implemented"
|
||
|
|
})))
|
||
|
|
}
|