flame/routes/queries.js
2021-10-11 13:55:53 +02:00

14 lines
314 B
JavaScript

const express = require('express');
const router = express.Router();
const {
getQueries,
addQuery,
deleteQuery,
updateQuery,
} = require('../controllers/queries/');
router.route('/').post(addQuery).get(getQueries);
router.route('/:prefix').delete(deleteQuery).put(updateQuery);
module.exports = router;