page.tsx 925 B

1234567891011121314151617181920212223242526272829
  1. import { ApiReferenceReact } from '@scalar/api-reference-react'
  2. export default function ApiDocs() {
  3. return (
  4. <div className="min-h-screen bg-gray-50">
  5. <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
  6. <div className="bg-white shadow rounded-lg">
  7. <div className="px-4 py-5 sm:p-6">
  8. <div className="mb-4">
  9. <h1 className="text-2xl font-bold text-gray-900">
  10. Vtorio API Documentation
  11. </h1>
  12. <p className="text-gray-600 mt-2">
  13. Interactive API documentation for file upload and management endpoints.
  14. </p>
  15. </div>
  16. <ApiReferenceReact
  17. configuration={{
  18. url: '/api/openapi.json',
  19. theme: 'default',
  20. layout: 'modern'
  21. }}
  22. />
  23. </div>
  24. </div>
  25. </div>
  26. </div>
  27. )
  28. }