move routes into api router top level
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user