mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 12:06:56 +08:00
docs(openapi): Show API version selection dropdown in Mintlify (#8333)
This commit is contained in:
@ -10,10 +10,10 @@ fn main() {
|
||||
compile_error!("features v1 and v2 are mutually exclusive, please enable only one of them");
|
||||
|
||||
#[cfg(feature = "v1")]
|
||||
let relative_file_path = "api-reference/openapi_spec.json";
|
||||
let relative_file_path = "api-reference/v1/openapi_spec_v1.json";
|
||||
|
||||
#[cfg(feature = "v2")]
|
||||
let relative_file_path = "api-reference-v2/openapi_spec.json";
|
||||
let relative_file_path = "api-reference/v2/openapi_spec_v2.json";
|
||||
|
||||
#[cfg(any(feature = "v1", feature = "v2"))]
|
||||
let mut file_path = router_env::workspace_path();
|
||||
|
||||
Reference in New Issue
Block a user