generated from Patagia/template-nix
Compare commits
1 commit
bf8a309b56
...
06d75a72c5
Author | SHA1 | Date | |
---|---|---|---|
06d75a72c5 |
1 changed files with 1 additions and 8 deletions
|
@ -44,14 +44,7 @@ struct VersionInfo {
|
|||
method = GET,
|
||||
path = "/version",
|
||||
}]
|
||||
#[tracing::instrument(
|
||||
skip(rqctx),
|
||||
fields(
|
||||
http.method=rqctx.request.method().as_str(),
|
||||
http.path=rqctx.request.uri().path(),
|
||||
http.remote_ip=rqctx.request.remote_addr().ip().to_string(),
|
||||
)
|
||||
)]
|
||||
#[tracing::instrument]
|
||||
async fn api_version(
|
||||
rqctx: RequestContext<Arc<()>>,
|
||||
) -> Result<HttpResponseOk<VersionInfo>, HttpError> {
|
||||
|
|
Loading…
Add table
Reference in a new issue