docs: change req.params to req.routeParams (#8380)

`req.params` is an old notation, now we use `req.routeParams`
This commit is contained in:
Sasha
2024-10-04 02:59:05 +03:00
committed by GitHub
parent e306c927a8
commit a735f40310

View File

@@ -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})