Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 51 additions & 39 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ lazy_static = "1.4"
mime = { version = "0.3" }
oauth_tsl = { git = "https://github.com/impierce/oauth-token-status-list", rev = "0aa0228" }
once_cell = { version = "1.19" }
product_common = { git = "https://github.com/iotaledger/product-core", tag = "v0.8.2", package = "product_common" }
product_common = { git = "https://github.com/iotaledger/product-core", tag = "v0.8.2", package = "product_common", features = [
"gas-station",
"default-http-client",
] }
rand = "0.9"
reqwest = { version = "0.12", default-features = false, features = [
"json",
Expand Down
23 changes: 23 additions & 0 deletions agent_api_http/postman/ssi-agent.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -2281,6 +2281,29 @@
"response": []
}
]
},
{
"name": "public",
"item": [
{
"name": "Show sponsoring configuration",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{HOST}}/public/sponsoring-configuration",
"host": [
"{{HOST}}"
],
"path": [
"public",
"sponsoring-configuration"
]
}
},
"response": []
}
]
}
],
"auth": {
Expand Down
2 changes: 2 additions & 0 deletions agent_api_http/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
pub mod public;
pub mod v0;

pub mod error;
Expand Down Expand Up @@ -66,6 +67,7 @@ pub fn app(
.merge(issuance_state.map(v0::issuance::router).unwrap_or_default())
.merge(holder_state.map(v0::holder::router).unwrap_or_default())
.merge(verification_state.map(v0::verification::router).unwrap_or_default())
.merge(public::router())
// Trace layers
.layer(
ServiceBuilder::new()
Expand Down
13 changes: 13 additions & 0 deletions agent_api_http/src/public/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
use axum::{routing::get, Router};

pub mod sponsoring_configuration;

pub fn router() -> Router {
Router::new().nest(
"/public",
Router::new().route(
"/sponsoring-configuration",
get(sponsoring_configuration::sponsoring_configuration),
),
)
}
Loading
Loading