about summary refs log tree commit diff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorPjotr Prins <pjotr.public01@thebird.nl>2026-10-01 16:57:48 +0200
committerPjotr Prins <pjotr.public01@thebird.nl>2026-10-01 16:57:48 +0200
commitb6374cf8d80c161cfed761d4c97eff320f311539 (patch)
treee8189619ad397a5da116e8296c1b74205808a7e1 /src/lib.rs
parent093c81ba42be704a73dad0193d901e4e3c878ace (diff)
downloadgenenetwork4-b6374cf8d80c161cfed761d4c97eff320f311539.tar.gz
Move tests out
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
new file mode 100644
index 0000000..d5bbaec
--- /dev/null
+++ b/src/lib.rs
@@ -0,0 +1,11 @@
+use axum::{routing::get, Router};
+
+/// Build the application router. Public so integration tests (tests/) and
+/// the binary (src/main.rs) can both use it without binding a real socket.
+pub fn app() -> Router {
+    Router::new().route("/", get(hello_world))
+}
+
+async fn hello_world() -> &'static str {
+    "Hello, world!"
+}