perchance-ai-prompt-library
Version:
🎨 Complete AI prompt library and generator with advanced CLI, batch processing, analytics, and multi-format export capabilities
44 lines (41 loc) • 1.14 kB
JavaScript
const express = require('express');
const router = express.Router();
/**
* @swagger
* /health:
* get:
* summary: Check API health status
* description: Returns the current health status of the API
* tags: [Health]
* responses:
* 200:
* description: API is healthy
* content:
* application/json:
* schema:
* type: object
* properties:
* status:
* type: string
* example: healthy
* version:
* type: string
* example: 2.0.0
* timestamp:
* type: string
* format: date-time
* features:
* type: array
* items:
* type: string
* example: ["api", "batch", "styles"]
*/
router.get('/health', (req, res) => {
res.json({
status: 'healthy',
version: '2.0.0',
timestamp: new Date().toISOString(),
features: ['api', 'batch', 'styles']
});
});
module.exports = router;