mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-29 17:19:57 -07:00
server: documentation part 1
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
use aide::axum::ApiRouter;
|
||||
use axum::{
|
||||
Json, Router,
|
||||
Json,
|
||||
extract::{Path, Query, State},
|
||||
http::{HeaderMap, Uri},
|
||||
response::{IntoResponse, Response},
|
||||
@@ -22,7 +23,7 @@ pub trait ApiMetricsRoutes {
|
||||
|
||||
const TO_SEPARATOR: &str = "_to_";
|
||||
|
||||
impl ApiMetricsRoutes for Router<AppState> {
|
||||
impl ApiMetricsRoutes for ApiRouter<AppState> {
|
||||
fn add_api_metrics_routes(self) -> Self {
|
||||
self.route(
|
||||
"/api/metrics/count",
|
||||
|
||||
Reference in New Issue
Block a user