Skip to content

Commit

Permalink
Create order.js
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Jul 28, 2024
1 parent 583bd89 commit 57a8f81
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const express = require('express');
const router = express.Router();
const orderService = require('../services/orderService');

router.post('/create', orderService.createOrder);
router.get('/all', orderService.getAllOrders);
router.get('/:id', orderService.getOrderById);

module.exports = router;

0 comments on commit 57a8f81

Please sign in to comment.