feat: inital redirect api

This commit is contained in:
Elias Renman
2025-03-16 23:42:00 +01:00
parent c39af75112
commit 02a35cc555
10 changed files with 62 additions and 29 deletions

10
src/dto/mod.rs Normal file
View File

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