get endpoint works
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user