'use client'; import { useEffect } from 'react'; import Link from 'next/link'; export default function ApiDocs() { useEffect(() => { // Load Scalar API Reference dynamically const script = document.createElement('script'); script.src = 'https://cdn.jsdelivr.net/npm/@scalar/api-reference@1.32.9/dist/browser/standalone.js'; script.async = true; document.body.appendChild(script); const style = document.createElement('link'); style.rel = 'stylesheet'; style.href = 'https://cdn.jsdelivr.net/npm/@scalar/api-reference@1.32.9/dist/style.css'; document.head.appendChild(style); return () => { document.body.removeChild(script); document.head.removeChild(style); }; }, []); return (
Interactive API documentation for file upload and management endpoints.