feat: basic creation and deletion of urls

This commit is contained in:
Elias Renman
2025-03-24 10:16:37 +01:00
parent e789cf5a2c
commit 1f65d20d75
27 changed files with 446 additions and 26 deletions

View File

@@ -1,10 +1,9 @@
use chrono::NaiveDateTime;
use rocket::serde::{Deserialize, Serialize};
#[serde(rename_all = "camelCase")]
#[derive(Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct UpsertUrlDto<'r> {
pub url: &'r str,
pub destination_url: &'r str,
pub ttl: Option<NaiveDateTime>,
}