mirror of
https://github.com/eliasrenman/url-shortener.git
synced 2026-03-16 20:16:06 +01:00
feat: inital redirect api
This commit is contained in:
10
src/dto/mod.rs
Normal file
10
src/dto/mod.rs
Normal 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>,
|
||||
}
|
||||
Reference in New Issue
Block a user