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