Added full documentation website into server.js
This commit is contained in:
@@ -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...\nVisit /api-docs for API documentation'));
|
||||
app.get('/', (req, res) => res.status(200).send('API is running...\nVisit https://idea-tracker-api.onrender.com/api-docs for API documentation'));
|
||||
if (process.env.NODE_ENV !== 'test') app.use(morgan('tiny'));
|
||||
|
||||
let specs;
|
||||
|
||||
Reference in New Issue
Block a user