feat: 增加独立的 Swagger 接口调试台

This commit is contained in:
Nixevol
2026-09-26 22:59:30 +08:00
parent 3ba5452359
commit 0c1e04464a
5 changed files with 719 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<title>RaptDrama 接口调试</title>
<link rel="stylesheet" href="/ui/swagger-ui.css">
<style>
body { margin: 0; }
.topbar { display: none; }
</style>
</head>
<body>
<div id="swagger-ui"></div>
<script src="/ui/swagger-ui-bundle.js"></script>
<script>
window.ui = SwaggerUIBundle({
url: "/openapi.yaml",
dom_id: "#swagger-ui",
deepLinking: true,
persistAuthorization: true,
presets: [SwaggerUIBundle.presets.apis],
layout: "BaseLayout"
});
</script>
</body>
</html>