Skip to content

Commit 62152a5

Browse files
authored
fix: metadata auth (#3224)
* fix: fix epoxy replica ids * fix: metadata auth
1 parent eef5ea6 commit 62152a5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/core/api-public/src/metadata.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
use axum::Json;
22
use axum::response::IntoResponse;
3+
use rivet_api_builder::{ApiError, extract::Extension};
34
use serde_json::json;
45

6+
use crate::ctx::ApiCtx;
7+
58
/// Returns metadata about the API including runtime and version
69
#[tracing::instrument(skip_all)]
7-
pub async fn get_metadata() -> impl IntoResponse {
10+
pub async fn get_metadata(Extension(ctx): Extension<ApiCtx>) -> impl IntoResponse {
11+
ctx.skip_auth();
12+
813
Json(json!({
914
"runtime": "engine",
1015
"version": env!("CARGO_PKG_VERSION")

0 commit comments

Comments
 (0)