1
0
mirror of https://github.com/franjsco/tick3t-api synced 2025-06-05 22:09:20 +02:00

edit route: tickets

This commit is contained in:
Francesco Esposito 2019-08-06 18:48:01 +02:00
parent d7e0323713
commit c8f2eb26ee

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;