modified: backend/src/config/swagger.ts
modified: frontend/src/pages/Dashboard.tsx
This commit is contained in:
@@ -14,8 +14,8 @@ const options: swaggerJsdoc.Options = {
|
||||
},
|
||||
servers: [
|
||||
{
|
||||
url: `http://localhost:${config.port}`,
|
||||
description: 'Development server',
|
||||
url: '/api',
|
||||
description: 'API Server',
|
||||
},
|
||||
],
|
||||
components: {
|
||||
|
||||
@@ -103,7 +103,7 @@ export default function Dashboard() {
|
||||
<h3 className="font-semibold text-green-700">Сгенерировать API ключ</h3>
|
||||
<p className="text-sm text-green-600">Создайте новый API ключ для внешних систем</p>
|
||||
</a>
|
||||
<a href="http://localhost:3000/api-docs" target="_blank" rel="noopener noreferrer" className="block p-4 bg-blue-50 hover:bg-blue-100 rounded-lg transition-colors">
|
||||
<a href="/api-docs" target="_blank" rel="noopener noreferrer" className="block p-4 bg-blue-50 hover:bg-blue-100 rounded-lg transition-colors">
|
||||
<h3 className="font-semibold text-blue-700">📚 Swagger документация</h3>
|
||||
<p className="text-sm text-blue-600">Документация API для пользователей с API ключами</p>
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user