feat: split middleware

This commit is contained in:
Maulana Sodiqin
2025-04-07 20:41:14 +07:00
parent 054f0f63ff
commit d2c333dbd6
11 changed files with 235 additions and 42 deletions
+14
View File
@@ -0,0 +1,14 @@
pub fn add(left: u64, right: u64) -> u64 {
left + right
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}
}
-3
View File
@@ -1,3 +0,0 @@
fn main() {
println!("Hello, world!");
}