Muyue aa0a3863b6 Refactor: Complete internationalization and modernization to v2.0.0
Major Changes:
  - Remove all emojis from UI, code, and documentation for professional appearance
  - Translate entire codebase from French to English (code, comments, strings, UI)
  - Simplify template system: 18 templates → single default template
  - Rename "Mode Liberté Total" to "Enhanced Mode" throughout
  - Add comprehensive English README with installation and usage guides
  - Add MIT License (open source, no attribution required)
  - Update package.json with proper metadata and keywords

  Breaking Changes:
  - Template API endpoint changed from /api/templates/:domain/:level to /api/templates/default
  - All French UI text and notifications replaced with English
  - Template directory structure simplified

  Technical Improvements:
  - Cleaner, more maintainable codebase
  - Improved internationalization
  - Better developer experience with English documentation
  - Professional appearance suitable for production use
2025-10-14 15:05:39 +02:00

35 lines
847 B
JavaScript

const express = require('express');
const router = express.Router();
const fs = require('fs');
const path = require('path');
// GET /api/templates/default - Get the default template
router.get('/default', (req, res) => {
try {
const templatePath = path.join(__dirname, '../templates/default.md');
if (!fs.existsSync(templatePath)) {
return res.status(404).json({
success: false,
error: 'Default template not found'
});
}
const templateContent = fs.readFileSync(templatePath, 'utf8');
res.json({
success: true,
data: {
content: templateContent
}
});
} catch (error) {
console.error('Error reading template:', error);
res.status(500).json({
success: false,
error: 'Server error while reading template'
});
}
});
module.exports = router;