tick3t-api/src/routes/tickets.js

10 lines
208 B
JavaScript
Raw Normal View History

2019-08-06 18:48:01 +02:00
import express from 'express';
import { create, getById } from '../controllers/ticket';
2019-07-04 08:54:40 +02:00
const router = express.Router();
2019-08-06 18:48:01 +02:00
router.post('/', create);
router.get('/:ticketId', getById);
2019-07-04 08:54:40 +02:00
2019-08-06 18:48:01 +02:00
export default router;