get endpoint works

This commit is contained in:
2026-03-03 12:14:39 +01:00
parent 3db69454e4
commit 0ad039a597
5 changed files with 42 additions and 25 deletions

View File

@@ -3,7 +3,7 @@ use axum::{Json};
use axum::http::StatusCode;
use axum::debug_handler;
use axum::response::IntoResponse;
use chrono::{DateTime, Local};
use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};
use utoipa::{IntoResponses, ToSchema};
@@ -12,12 +12,12 @@ use crate::types::Alarm;
#[derive(Debug, Deserialize, ToSchema)]
pub struct RequestBody {
time: DateTime<Local>,
time: DateTime<Utc>,
}
#[derive(ToSchema, Serialize)]
pub struct OkResponseBody {
time: DateTime<Local>,
time: DateTime<Utc>,
enabled: bool,
}