Skip to content

Commit

Permalink
Set correct type for service-desc. Add service-doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
ways committed Oct 7, 2024
1 parent d813b00 commit b0a7db3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/routes/landing_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@ def create_landing_page(base_url) -> dict:
Link(
href=f"{base_url}api",
rel="service-desc",
type="application/json",
type="application/vnd.oai.openapi+json;version=3.1",
title="OpenAPI document",
),
Link(
href=f"{base_url}docs",
rel="service-doc",
type="text/html",
title="OpenAPI document",
),
Link(
Expand Down

0 comments on commit b0a7db3

Please sign in to comment.