"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const express_1 = require("express");
const tickets_1 = require("../services/tickets");
const router = express_1.Router();
const getKnex = (req) => req.app.get("knex");
router.delete("/ticket/:id", (req, res) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
    const knex = getKnex(req);
    try {
        const ticketService = new tickets_1.default(knex);
        yield ticketService.delete(req.params.id);
    }
    catch (err) {
        console.log(err);
    }
}));
module.exports = router;
//# sourceMappingURL=tickets.js.map