edit route: tickets

This commit is contained in:
Francesco Esposito 2019-08-06 18:48:01 +02:00
parent d7e0323713
commit c8f2eb26ee
1 changed files with 5 additions and 7 deletions

View File

@ -1,11 +1,9 @@
import * as ticketController from '../controllers/ticket';
const express = require('express');
import express from 'express';
import { create, getById } from '../controllers/ticket';
const router = express.Router();
router.post('/', create);
router.get('/:ticketId', getById);
router.post('/', ticketController.create);
router.get('/:ticketId', ticketController.getById);
module.exports = router;
export default router;