Move typed paths to separate module

This commit is contained in:
Joscha 2023-08-13 16:32:13 +02:00
parent 3d5a277234
commit 058ed2e85c
6 changed files with 85 additions and 27 deletions

View file

@ -3,16 +3,11 @@ use axum::{
response::{IntoResponse, Redirect},
Form,
};
use axum_extra::routing::TypedPath;
use serde::Deserialize;
use sqlx::SqlitePool;
use time::OffsetDateTime;
use crate::{config::Config, somehow};
#[derive(Deserialize, TypedPath)]
#[typed_path("/admin/queue/add")]
pub struct PathAdminQueueAdd {}
use crate::{config::Config, server::web::paths::PathAdminQueueAdd, somehow};
#[derive(Deserialize)]
pub struct FormAdminQueueAdd {