Constnium/src/utils
2022-06-25 19:23:56 +02:00
..
readme.js fix eslint issues 2022-06-25 19:23:56 +02:00
utils.js fix eslint issues 2022-06-25 19:23:56 +02:00

const fs = require('fs');

// Retrieve the FAQ file
const get = () => {
    return new Promise(function(ok) {
        fs.readFile('./FAQ.md', 'utf8', (err, data) => {
            if (err) {
                console.log(err);
                ok('# Erreur 404\nImpossible de trouver la FAQ.');
            }
            ok(data);
        });
    });
};

module.exports = {
    get
};