forked from baron/baron-sso
38 lines
1.1 KiB
HTML
38 lines
1.1 KiB
HTML
<!doctype html>
|
|
<html lang="ko">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>Baron SSO ReDoc</title>
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="redoc-root"></div>
|
|
<script>
|
|
(function () {
|
|
const path = window.location.pathname;
|
|
const docsBase = path.replace(/\/redoc\/?$/, "/redoc/");
|
|
const assetBase = docsBase.endsWith("/") ? docsBase : docsBase + "/";
|
|
const openapiUrl = assetBase.replace(/redoc\/$/, "openapi.yaml");
|
|
|
|
const script = document.createElement("script");
|
|
script.src = assetBase + "redoc.standalone.js";
|
|
script.onload = () => {
|
|
if (window.Redoc) {
|
|
window.Redoc.init(openapiUrl, {}, document.getElementById("redoc-root"));
|
|
}
|
|
};
|
|
script.onerror = (err) => {
|
|
console.error("ReDoc load failed", err);
|
|
};
|
|
document.body.appendChild(script);
|
|
})();
|
|
</script>
|
|
</body>
|
|
</html>
|