mirror of
https://github.com/valitydev/wallets-api.git
synced 2024-11-06 02:45:22 +00:00
[ci skip] deploy from Andrew
This commit is contained in:
parent
092e592397
commit
b1666841db
@ -23,15 +23,25 @@
|
||||
<body>
|
||||
<div id='redoc'></div>
|
||||
<script type="text/javascript">
|
||||
Redoc.init('api/wallet/swagger.json', {
|
||||
theme: {
|
||||
breakpoints: {
|
||||
//3-panel view fix
|
||||
medium: '75rem',
|
||||
// Since we serve three different specs from a single domain we hack up a
|
||||
// simple way to redirect user to one or another
|
||||
var spec = window.location.search.substring(1);
|
||||
if (spec.length == 0) {
|
||||
spec = "api/wallet/swagger.json";
|
||||
}
|
||||
Redoc.init(
|
||||
spec,
|
||||
{
|
||||
theme: {
|
||||
breakpoints: {
|
||||
// 3-panel view fix
|
||||
medium: '75rem'
|
||||
}
|
||||
}
|
||||
}
|
||||
}, document.getElementById('redoc'));
|
||||
},
|
||||
document.getElementById('redoc')
|
||||
);
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue
Block a user