export const create = (router: Router) => {
const repo = createRepo();
router.get('/tickets/get_by_tenant_id', async (req, res) => {
// Mocked. Should be extracted from the JWT.
const tenantId = '908e2d94-aef7-4ba6-a1a3-2ccec65a1d97';
const result = await repo.get_by_tenant_id({ tenantId });
res.json(result);
});
export const create = (router: Router) => {
const repo = createRepo();
router.get('/tickets/get_by_tenant_id', async (req, res) => {
// Mocked. Should be extracted from the JWT.
const tenantId = '908e2d94-aef7-4ba6-a1a3-2ccec65a1d97';
const result = await repo.get_by_tenant_id({ tenantId });
res.json(result);
});