Skip to content

Commit

Permalink
Create contractRoutes.js
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Aug 8, 2024
1 parent 4876347 commit 9bd5d2b
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import express from 'express';
import { createContract, getContracts, getContract, updateContract, deleteContract } from '../services/contractService';

const router = express.Router();

router.post('/', createContract);
router.get('/', getContracts);
router.get('/:id', getContract);
router.patch('/:id', updateContract);
router.delete('/:id', deleteContract);

export default router;

0 comments on commit 9bd5d2b

Please sign in to comment.