mirror of
https://github.com/pawelmalak/flame.git
synced 2025-07-24 13:39:35 +02:00
Config model and controllers
This commit is contained in:
parent
873faa6c97
commit
3fc3d07598
5 changed files with 144 additions and 1 deletions
23
routes/config.js
Normal file
23
routes/config.js
Normal file
|
@ -0,0 +1,23 @@
|
|||
const express = require('express');
|
||||
const router = express.Router();
|
||||
|
||||
const {
|
||||
createPair,
|
||||
getAllPairs,
|
||||
getSinglePair,
|
||||
updateValue,
|
||||
deletePair
|
||||
} = require('../controllers/config');
|
||||
|
||||
router
|
||||
.route('')
|
||||
.post(createPair)
|
||||
.get(getAllPairs);
|
||||
|
||||
router
|
||||
.route('/:key')
|
||||
.get(getSinglePair)
|
||||
.put(updateValue)
|
||||
.delete(deletePair);
|
||||
|
||||
module.exports = router;
|
Loading…
Add table
Add a link
Reference in a new issue