1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-07-19 11:39:36 +02:00

Add and delete custom search provider actions and controllers

This commit is contained in:
unknown 2021-10-11 13:03:31 +02:00
parent 459523dfd2
commit a885440fef
15 changed files with 392 additions and 82 deletions

View file

@ -175,16 +175,3 @@ exports.updateCss = asyncWrapper(async (req, res, next) => {
data: {},
});
});
// @desc Get custom queries file
// @route GET /api/config/0/queries
// @access Public
exports.getQueries = asyncWrapper(async (req, res, next) => {
const file = new File(join(__dirname, '../data/customQueries.json'));
const content = JSON.parse(file.read());
res.status(200).json({
success: true,
data: content.queries,
});
});