docs: change req.params to req.routeParams (#8380)
`req.params` is an old notation, now we use `req.routeParams`
This commit is contained in:
@@ -605,7 +605,7 @@ export const Orders: CollectionConfig = {
|
||||
path: '/:id/tracking',
|
||||
method: 'get',
|
||||
handler: async (req) => {
|
||||
const tracking = await getTrackingInfo(req.params.id)
|
||||
const tracking = await getTrackingInfo(req.routeParams.id)
|
||||
|
||||
if (!tracking) {
|
||||
return Response.json({ error: 'not found' }, { status: 404})
|
||||
|
||||
Reference in New Issue
Block a user