|
@@ -6,13 +6,13 @@ export default function ApiDocs() {
|
|
|
useEffect(() => {
|
|
useEffect(() => {
|
|
|
// Load Scalar API Reference dynamically
|
|
// Load Scalar API Reference dynamically
|
|
|
const script = document.createElement('script');
|
|
const script = document.createElement('script');
|
|
|
- script.src = 'https://cdn.jsdelivr.net/npm/@scalar/api-reference@latest/dist/browser/standalone.js';
|
|
|
|
|
|
|
+ script.src = 'https://cdn.jsdelivr.net/npm/@scalar/api-reference@1.32.9/dist/browser/standalone.min.js';
|
|
|
script.async = true;
|
|
script.async = true;
|
|
|
document.body.appendChild(script);
|
|
document.body.appendChild(script);
|
|
|
|
|
|
|
|
const style = document.createElement('link');
|
|
const style = document.createElement('link');
|
|
|
style.rel = 'stylesheet';
|
|
style.rel = 'stylesheet';
|
|
|
- style.href = 'https://cdn.jsdelivr.net/npm/@scalar/api-reference@latest/dist/browser/style.css';
|
|
|
|
|
|
|
+ style.href = 'https://cdn.jsdelivr.net/npm/@scalar/api-reference@1.32.9/dist/style.min.css';
|
|
|
document.head.appendChild(style);
|
|
document.head.appendChild(style);
|
|
|
|
|
|
|
|
return () => {
|
|
return () => {
|