mirror of
https://github.com/strapi/strapi.git
synced 2025-07-07 17:12:33 +00:00
23 lines
347 B
JavaScript
Executable File
23 lines
347 B
JavaScript
Executable File
'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: {
|
|
'api/:api/controllers/:filename': {
|
|
template: 'controller.template'
|
|
}
|
|
}
|
|
};
|