Files
gin/router/theme/scalar/index.html

27 lines
553 B
HTML

<!doctype html>
<html>
<head>
<title>{{DOC_TITLE}}</title>
<meta charset="utf-8" />
<meta
content="width=device-width, initial-scale=1"
name="viewport" />
</head>
<body>
<div id="app"></div>
<!-- Load the Script -->
<script src="api-reference.js"></script>
<!-- Initialize the Scalar API Reference -->
<script>
Scalar.createApiReference('#app', {
// The URL of the OpenAPI/Swagger document
url: '{{DOC_PATH}}',
// Avoid CORS issues
proxyUrl: '',
})
</script>
</body>
</html>