mirror of https://github.com/franjsco/tick3t-api
edit route: tickets
This commit is contained in:
parent
d7e0323713
commit
c8f2eb26ee
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue