diff --git a/pages/api/weekstoday/[weeks].js b/pages/api/weekstoday/[weekstoday].js similarity index 94% rename from pages/api/weekstoday/[weeks].js rename to pages/api/weekstoday/[weekstoday].js index 0b3ef57..4118237 100644 --- a/pages/api/weekstoday/[weeks].js +++ b/pages/api/weekstoday/[weekstoday].js @@ -27,7 +27,7 @@ const ApiResponse = async (req, res) => { let x = canvas.width / 2 + 80; let y = canvas.height - canvas.height / 2.5; - let imageStr = imageRef.weeks; + let imageStr = imageRef.weekstoday; console.log(imageStr, x, y); ctx.lineWidth = 25; @@ -70,7 +70,7 @@ const ApiResponse = async (req, res) => { res.setHeader( "content-disposition", - "attachment; filename=" + imageRef.weeks + "-weeks.png" + "attachment; filename=" + imageRef.weekstoday + "-weeks.png" ); res.status(200).send(png); };