mirror of
				https://github.com/strapi/strapi.git
				synced 2025-11-04 11:54:10 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			219 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			219 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
'use strict';
 | 
						|
 | 
						|
/**
 | 
						|
 * Create a new entry.
 | 
						|
 */
 | 
						|
 | 
						|
module.exports = function * () {
 | 
						|
  try {
 | 
						|
    const entry = yield strapi.hooks.blueprints.create(this);
 | 
						|
    this.body = entry;
 | 
						|
  } catch (err) {
 | 
						|
    this.body = err;
 | 
						|
  }
 | 
						|
};
 |