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:
@ -1,11 +1,9 @@
|
|||||||
import * as ticketController from '../controllers/ticket';
|
import express from 'express';
|
||||||
|
import { create, getById } from '../controllers/ticket';
|
||||||
const express = require('express');
|
|
||||||
|
|
||||||
const router = express.Router();
|
const router = express.Router();
|
||||||
|
|
||||||
|
router.post('/', create);
|
||||||
|
router.get('/:ticketId', getById);
|
||||||
|
|
||||||
router.post('/', ticketController.create);
|
export default router;
|
||||||
router.get('/:ticketId', ticketController.getById);
|
|
||||||
|
|
||||||
module.exports = router;
|
|
||||||
|
Reference in New Issue
Block a user