move routes into api router top level

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-07-14 23:46:03 +00:00
parent c42cb90dd3
commit 720fbd09c2
4 changed files with 31 additions and 30 deletions

View file

@ -10,7 +10,7 @@ extern crate conduit_api as api;
pub(crate) fn build(server: &Arc<Server>) -> Router {
let state = service::services();
let router = Router::new()
api::router::build(Router::new(), server)
.route("/", get(it_works))
.fallback(not_found)
.with_state(state);