flame/routes/apps.js
2021-05-10 17:47:26 +02:00

23 lines
336 B
JavaScript

const express = require('express');
const router = express.Router();
const {
createApp,
getApps,
getApp,
updateApp,
deleteApp
} = require('../controllers/apps');
router
.route('/')
.post(createApp)
.get(getApps);
router
.route('/:id')
.get(getApp)
.put(updateApp)
.delete(deleteApp);
module.exports = router;