mirror of
https://github.com/strapi/strapi.git
synced 2025-07-21 07:57:45 +00:00
26 lines
430 B
JavaScript
26 lines
430 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/models/:filename': {
|
||
|
template: 'model.template'
|
||
|
},
|
||
|
'api/:api/models/:filenameSettings': {
|
||
|
template: 'model.settings.template'
|
||
|
},
|
||
|
}
|
||
|
};
|