Skip to content

Commit

Permalink
Add terms of service to export API
Browse files Browse the repository at this point in the history
  • Loading branch information
ja573 committed Sep 11, 2024
1 parent 52111e2 commit 4e5b9c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion thoth-export-server/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ struct ApiConfig {
impl ApiConfig {
pub fn new(public_url: String) -> Self {
Self {
api_schema: format!("{public_url}/swagger.json"),
api_schema: format!("{public_url}/openapi.json"),
}
}
}
Expand Down Expand Up @@ -82,6 +82,7 @@ pub async fn start_server(
"Obtain Thoth metadata records in various formats and platform specifications"
.to_string(),
),
terms_of_service: Some("https://thoth.pub/policies/terms-thoth-free".to_string()),
contact: Some(Contact {
name: Some("Thoth Support".to_string()),
url: Some("https://thoth.pub".to_string()),
Expand All @@ -107,6 +108,7 @@ pub async fn start_server(
.configure(platform::route)
.configure(specification::route)
.with_json_spec_at("/swagger.json")
.with_json_spec_v3_at("/openapi.json")
.build()
})
.workers(threads)
Expand Down

0 comments on commit 4e5b9c7

Please sign in to comment.