Skip to content

Commit 5bf0fc8

Browse files
authoredDec 10, 2024
Merge pull request #22 from sine-fdn/hoc-schema
chore: publish hoc schema
2 parents 299f73f + 72b375f commit 5bf0fc8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎demo-api/src/main.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,11 @@ fn toc_schema() -> Json<RootSchema> {
630630
Json::from(schema_for!(Toc))
631631
}
632632

633+
#[get("/hoc.json")]
634+
fn hoc_schema() -> Json<RootSchema> {
635+
Json::from(schema_for!(Hoc))
636+
}
637+
633638
#[catch(400)]
634639
fn bad_request() -> error::BadRequest {
635640
Default::default()
@@ -654,7 +659,7 @@ fn create_server(key_pair: KeyPair) -> rocket::Rocket<rocket::Build> {
654659
.mount("/", routes![index])
655660
.mount("/", routes![get_list, get_pcf_unauth, post_event_fallback])
656661
.mount("/", routes![openid_configuration, jwks])
657-
.mount("/", routes![shipment_footprint_schema, toc_schema])
662+
.mount("/", routes![shipment_footprint_schema, toc_schema, hoc_schema])
658663
.mount("/auth", routes![oauth2_create_token])
659664
.mount(
660665
"/swagger-ui/",

0 commit comments

Comments
 (0)