feat: add automatic types generation (#703)

This commit is contained in:
Valerio Ageno
2025-04-20 11:04:48 +02:00
committed by GitHub
parent 0813c14e15
commit bc444929ed
26 changed files with 1246 additions and 59 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ pub use payload::Payload;
pub use request::Request;
pub use response::{Props, Response};
pub use server::{Server, tuono_internal_init_v8_platform};
pub use tuono_lib_macros::{api, handler};
pub use tuono_lib_macros::{Type, api, handler};
// Re-exports
pub use axum;
+1 -1
View File
@@ -107,7 +107,7 @@ impl<'a> Payload<'a> {
.filter(|path| !path.is_empty())
.collect::<Vec<&str>>();
let mut route_segments_collector: Vec<&str> = vec![];
let mut route_segments_collector: Vec<&str> = Vec::new();
for i in 0..dyn_route_segments.len() {
if dyn_route_segments[i].starts_with("[...") {