mirror of
				https://github.com/strapi/strapi.git
				synced 2025-10-31 09:56:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			339 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			339 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| 'use strict';
 | |
| 
 | |
| /**
 | |
|  * Module dependencies
 | |
|  */
 | |
| 
 | |
| // Node.js core.
 | |
| const path = require('path');
 | |
| 
 | |
| /**
 | |
|  * Generate a core API
 | |
|  */
 | |
| 
 | |
| module.exports = {
 | |
|   templatesDirectory: path.resolve(__dirname, '..', 'templates'),
 | |
|   before: require('./before'),
 | |
|   targets: {
 | |
|     ':filePath/:filename': {
 | |
|       template: 'controller.template',
 | |
|     },
 | |
|   },
 | |
| };
 | 
