move routes into api router top level
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
c42cb90dd3
commit
720fbd09c2
4 changed files with 31 additions and 30 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue