mirror of
https://github.com/pawelmalak/flame.git
synced 2024-12-21 17:21:30 +03:00
25 lines
406 B
JavaScript
25 lines
406 B
JavaScript
const express = require('express');
|
|
const router = express.Router();
|
|
|
|
const {
|
|
createPair,
|
|
getAllPairs,
|
|
getSinglePair,
|
|
updateValue,
|
|
updateValues,
|
|
deletePair,
|
|
} = require('../controllers/config');
|
|
|
|
router
|
|
.route('')
|
|
.post(createPair)
|
|
.get(getAllPairs)
|
|
.put(updateValues);
|
|
|
|
router
|
|
.route('/:key')
|
|
.get(getSinglePair)
|
|
.put(updateValue)
|
|
.delete(deletePair);
|
|
|
|
module.exports = router; |