mirror of
https://github.com/pawelmalak/flame.git
synced 2024-12-20 08:41:48 +03:00
14 lines
282 B
JavaScript
14 lines
282 B
JavaScript
const express = require('express');
|
|
const router = express.Router();
|
|
|
|
const {
|
|
getQueries,
|
|
addQuery,
|
|
deleteQuery,
|
|
} = require('../controllers/queries/');
|
|
|
|
router.route('/').post(addQuery).get(getQueries);
|
|
router.route('/:prefix').delete(deleteQuery);
|
|
|
|
module.exports = router;
|