diff --git a/server/routers/dry-wash/arm-orders.js b/server/routers/dry-wash/arm-orders.js index ab10378..97397b1 100644 --- a/server/routers/dry-wash/arm-orders.js +++ b/server/routers/dry-wash/arm-orders.js @@ -1,13 +1,9 @@ const router = require('express').Router() const { OrderModel } = require('./model/order') -router.get('/orders', async (req, res, next) => { - try { +router.post('/orders', async (req, res, next) => { const orders = await OrderModel.find({}) res.status(200).send({ success: true, body: orders }) - } catch (error) { - next(error) - } }) -module.exports = router \ No newline at end of file +module.exports = router