added the proper production server to openapi.yaml

This commit is contained in:
2026-04-28 08:41:56 -04:00
parent d590a65c5e
commit e2a53f61df
3 changed files with 5 additions and 3 deletions

BIN
src/.DS_Store vendored

Binary file not shown.

View File

@@ -20,7 +20,7 @@ const PORT = process.env.PORT || 3000;
app.use(express.json());
app.get('/health', (req, res) => res.status(200).json({ status: 'UP' }));
app.get('/', (req, res) => res.status(200).send('API is running...'));
app.get('/', (req, res) => res.status(200).send('API is running...\nVisit /api-docs for API documentation'));
if (process.env.NODE_ENV !== 'test') app.use(morgan('tiny'));
let specs;
@@ -31,8 +31,8 @@ try {
console.log('Failed to load OpenAPI specification', error);
process.exit(1);
}
app.use('/api-docs', swaggerUI.serve, swaggerUI.setup(specs));
app.use('/api-docs', swaggerUI.serve, swaggerUI.setup(specs));
app.use('/api/auth', authRoutes);
app.use('/api/ideas', ideasRoutes);
app.use('/api/projects', projectsRoutes);