Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@
"express": "^4.18.2",
"express-rate-limit": "^6.10.0",
"express-validator": "^7.0.1",
"swagger-jsdoc": "^6.2.8",
"swagger-ui-express": "^5.0.0",
"firebase-admin": "^13.7.0",
"graphlib": "^2.1.8",
"helmet": "^7.0.0",
Expand Down Expand Up @@ -94,8 +92,6 @@
"@types/node": "^20.5.1",
"@types/nodemailer": "^6.4.14",
"@types/supertest": "^2.0.12",
"@types/swagger-jsdoc": "^6.0.4",
"@types/swagger-ui-express": "^4.1.6",
"@types/uuid": "^9.0.4",
"@types/web-push": "^3.6.4",
"@typescript-eslint/eslint-plugin": "^6.4.0",
Expand Down
1,005 changes: 0 additions & 1,005 deletions backend/src/config/swagger.ts

This file was deleted.

8 changes: 0 additions & 8 deletions backend/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import dotenv from 'dotenv';
import cors from 'cors';
import helmet from 'helmet';
import { Redis } from 'ioredis';
import swaggerUi from 'swagger-ui-express';
import logger from './utils/logger';
import requestLogger from './middleware/requestLogger';
import { connectRedis } from './utils/redis';
Expand All @@ -13,7 +12,6 @@ import { setSyncWebsocketEmitter } from './services/syncService';
import { initCollaborationService } from './services/initCollaboration';
// @ts-ignore
import SecureRealtimeCommunication from './services/secureRealtimeCommunication';
import { swaggerSpec } from './config/swagger';

// @ts-ignore
import * as transactionQueue from './services/transactionQueue';
Expand Down Expand Up @@ -127,12 +125,6 @@ app.use(detectSuspiciousPatterns);
// NEW/Updated: Sanitize all inputs
app.use(requestSanitizer);

// Serve Swagger UI at /api-docs
app.use('/api-docs', swaggerUi.serve, swaggerUi.setup(swaggerSpec, {
explorer: true,
customSiteTitle: 'AetherMint API Docs',
}));

// API routes
app.use('/api/quizzes', quizRoutes);
app.use('/api/events', eventLoggerRoutes);
Expand Down
Loading