Create notes.js
This commit is contained in:
10
api/v1/src/notes.js
Normal file
10
api/v1/src/notes.js
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
const fs = require('fs');
|
||||||
|
const path = require('path');
|
||||||
|
|
||||||
|
function getReleaseNote() {
|
||||||
|
const filePath = path.join(__dirname, 'notes.json');
|
||||||
|
const fileData = fs.readFileSync(filePath, 'utf-8');
|
||||||
|
return JSON.parse(fileData);
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = getReleaseNote;
|
||||||
Reference in New Issue
Block a user