multy-stub/server/routers/dry-wash/arm-orders.js

10 lines
282 B
JavaScript

const router = require('express').Router()
const { OrderModel } = require('./model/order')
router.post('/orders', async (req, res, next) => {
const orders = await OrderModel.find({})
res.status(200).send({ success: true, body: orders })
})
module.exports = router