npub127…n5r64 on Nostr: // n34-relay - A nostr GRASP relay implementation // Copyright (C) 2025 Awiteb ...
// n34-relay - A nostr GRASP relay implementation
// Copyright (C) 2025 Awiteb <a@4rs.nl>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published
// by the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <
https://gnu.org/licenses/agpl-3.0>.
use std::sync::Arc;
use axum::{
Json,
response::{IntoResponse, Response},
};
use crate::router_state::RouterState;
pub async fn handler(state: Arc<RouterState>) -> Response {
Json(&state.config.nip11).into_response()
}
Published at
2026-04-05 05:20:24 UTCEvent JSON
{
"id": "d8bf2fd94ae2e86a7aced4aff3c983f2b0a620df62baeaaeab8ba64a8268d4ac",
"pubkey": "57b9455391febd50ebf57e3cae542b3339bba7afbf2a12484b98dde60421db06",
"created_at": 1775366424,
"kind": 1,
"tags": [
[
"file",
"n34-relay/src/endpoints/nip11.rs"
],
[
"version",
"0.4.7"
]
],
"content": "// n34-relay - A nostr GRASP relay implementation\n// Copyright (C) 2025 Awiteb \u003ca@4rs.nl\u003e\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU Affero General Public License as published\n// by the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// This program is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n// GNU Affero General Public License for more details.\n//\n// You should have received a copy of the GNU Affero General Public License\n// along with this program. If not, see \u003chttps://gnu.org/licenses/agpl-3.0\u003e.\n\nuse std::sync::Arc;\n\nuse axum::{\n Json,\n response::{IntoResponse, Response},\n};\n\nuse crate::router_state::RouterState;\n\npub async fn handler(state: Arc\u003cRouterState\u003e) -\u003e Response {\n Json(\u0026state.config.nip11).into_response()\n}\n",
"sig": "773981b5b0b21522578a1d7c5f88bc787a9efda6a545555a422badca6577895b2a81fe4ab26e7c20a39cb53560f3088bccb02663168cabb9ee3141b95be4f02f"
}