AL
const router = express.Router()
router.get('/:orderId', (req, res, next) => {
res.status(200).json({
message: 'Orders details',
orderId: req.params.orderId
})
})
module.exports = router```Size: a a a
AL
router.get('/:orderId', (req, res, next) => {
res.status(200).json({
message: 'Orders details',
orderId: req.params.orderId
})
})
module.exports = router```CM
CM
router.get('/:orderId', (req, res, next) => {
res.status(200).json({
message: 'Orders details',
orderId: req.params.orderId
})
})
module.exports = router```J
AL
const express = require('express')
const app = express()
const productRoutes = require('./api/routes/products')
const orderRoutes = require('./api/routes/products')
app.use('/products', productRoutes)
app.use('/orders', orderRoutes)
module.exports = appAL
const express = require('express')
const app = express()
const productRoutes = require('./api/routes/products')
const orderRoutes = require('./api/routes/products')
app.use('/products', productRoutes)
app.use('/orders', orderRoutes)
module.exports = appPS
CM
router.get('/:orderId', (req, res, next) => {
res.status(200).json({
message: 'Orders details',
orderId: req.params.orderId
})
})
module.exports = router```AL
const express = require('express')
const app = express()
const productRoutes = require('./api/routes/products')
const orderRoutes = require('./api/routes/products')
app.use('/products', productRoutes)
app.use('/orders', orderRoutes)
module.exports = appCM
const express = require('express')
const app = express()
const productRoutes = require('./api/routes/products')
const orderRoutes = require('./api/routes/products')
app.use('/products', productRoutes)
app.use('/orders', orderRoutes)
module.exports = appAM
AL
|

С
JC
CM
|
CM
JC