httpd: Use `State` instead of `Extension` for `root_handler`
modified radicle-httpd/src/api.rs
@@ -4,11 +4,12 @@ use std::collections::HashMap;
|
|
|
|
|
|
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -78,7 +79,7 @@ impl Context {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -98,7 +99,7 @@ pub fn router(ctx: Context) -> Router {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|