- .env.example: полный шаблон, защита секретов - .gitignore: явное исключение .env.* и секретов - layout.tsx: XSS — заменён dangerouslySetInnerHTML на next/script для SW - ESLint: no-console error (allow warn/error), ignore scripts/ - scripts/remove-console-logs.js: очистка console.log без glob - backend/routes/modules: README с планом рефакторинга крупных файлов - SECURITY.md: гид по секретам, XSS, CORS, auth, линту - .husky/pre-commit: запуск npm run lint + прочие правки приложения и бэкенда Co-authored-by: Cursor <cursoragent@cursor.com>
12 lines
445 B
TypeScript
12 lines
445 B
TypeScript
'use client';
|
|
|
|
export default function ApiDocsPage() {
|
|
return (
|
|
<div className="p-8">
|
|
<h1 className="text-2xl font-bold mb-4">API Documentation</h1>
|
|
<p className="text-gray-600 mb-4">Swagger UI available at: <a href="http://localhost:8000/docs" className="text-blue-600 underline">http://localhost:8000/docs</a></p>
|
|
<iframe src="http://localhost:8000/docs" className="w-full h-[80vh] border rounded" />
|
|
</div>
|
|
);
|
|
}
|