Allow the creation of new entries
This commit is contained in:
8
src/valueObjects/Entry.js
Normal file
8
src/valueObjects/Entry.js
Normal file
@ -0,0 +1,8 @@
|
||||
export function createEntry(path = '', slug = '', raw = '') {
|
||||
const returnObj = {};
|
||||
returnObj.path = path;
|
||||
returnObj.slug = slug;
|
||||
returnObj.raw = raw;
|
||||
returnObj.data = {};
|
||||
return returnObj;
|
||||
}
|
Reference in New Issue
Block a user