refactor: consolidate all config related code into config module (#9811)

Refs #9806

Co-authored-by: Vladimír Gorej <vladimir.gorej@gmail.com>
This commit is contained in:
Oliwia Rogala
2024-04-15 11:29:11 +02:00
committed by GitHub
parent fb075df9e6
commit 68eb346a23
9 changed files with 303 additions and 190 deletions

View File

@@ -0,0 +1,15 @@
/**
* @prettier
*/
import { parseSearch } from "core/utils"
/**
* Receives options from the query string of the URL where SwaggerUI
* is being served.
*/
const optionsFromQuery = () => (options) => {
return options.queryConfigEnabled ? parseSearch() : {}
}
export default optionsFromQuery