Skip to content

Commit

Permalink
change endpoint interface to be consistent with other routes
Browse files Browse the repository at this point in the history
  • Loading branch information
bragov4ik committed Aug 23, 2024
1 parent b9f9d78 commit 7314b5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/endpoints/swagger/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ async fn serve_swagger_from(path: Arc<PathBuf>, _req: HttpRequest) -> Result<Nam
Ok(NamedFile::open(path.as_ref())?)
}

pub fn register_route(
pub fn route_swagger(
service_config: &mut actix_web::web::ServiceConfig,
swagger_file_path: PathBuf,
) {
Expand Down

0 comments on commit 7314b5d

Please sign in to comment.