Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: get server for Openapi specification #236

Merged
merged 17 commits into from
Feb 7, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix: spelling and format
bkioshn committed Feb 5, 2024
commit 3626fe56408a6dea4014f09df16ee39848b63161
5 changes: 4 additions & 1 deletion .config/dictionaries/project.dic
Original file line number Diff line number Diff line change
@@ -120,4 +120,7 @@ nextest
testcov
testdocs
fmtchk
fmtfix
fmtfix
gethostname
afinet
netifas
6 changes: 2 additions & 4 deletions catalyst-gateway/bin/src/service/api/mod.rs
Original file line number Diff line number Diff line change
@@ -21,8 +21,6 @@ mod test_endpoints;
mod v0;
mod v1;

// cspell: words gethostname afinet netifas

/// The name of the API
const API_TITLE: &str = "Catalyst Gateway";

@@ -87,8 +85,8 @@ pub(crate) fn mk_api(
// Get localhost name
if let Ok(hostname) = gethostname().into_string() {
let hostname_with_port = format!("{}:{}", hostname, PORT);
service =
service.server(ServerObject::new(hostname_with_port).description("Server at localhost name"));
service = service
.server(ServerObject::new(hostname_with_port).description("Server at localhost name"));
}

// Get local IP address v4 and v6