diff options
| author | Pjotr Prins <pjotr.public01@thebird.nl> | 2026-10-01 16:57:48 +0200 |
|---|---|---|
| committer | Pjotr Prins <pjotr.public01@thebird.nl> | 2026-10-01 16:57:48 +0200 |
| commit | b6374cf8d80c161cfed761d4c97eff320f311539 (patch) | |
| tree | e8189619ad397a5da116e8296c1b74205808a7e1 /src/lib.rs | |
| parent | 093c81ba42be704a73dad0193d901e4e3c878ace (diff) | |
| download | genenetwork4-b6374cf8d80c161cfed761d4c97eff320f311539.tar.gz | |
Move tests out
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 11 |
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!" +} |
