Custom route upload

Version Strapi : V4

Hi ,
I am using Strapi 4 with the plugin @strapi/provider-upload-aws-s3. I would like to add a custom route, namely /upload/files/:id/download. I tried adding this route in src/extensions/upload/routes/custom.ts:

export default {
  routes: [
    {
      method: "GET",
      path: "/upload/files/:id/download",
      handler: "file.download",
      config: {
        auth: false, // Set to true if you want to authenticate this route
      },
    },
  ],
};

However, when I call this route from the front-end, I receive a 404 error. Can someone help me resolve this issue?