top-tran/backend/src/routes/sync.routes.ts

15 lines
392 B
TypeScript
Raw Normal View History

import { Router } from 'express';
import * as syncController from '../controllers/sync.controller.js';
const router = Router();
// GET routes
router.get('/companies', syncController.getCompanies);
router.get('/rides', syncController.getRides);
// POST routes
router.post('/companies', syncController.syncCompanies);
router.post('/rides', syncController.syncRides);
export default router;