updated api calls with copyright and routes

This commit is contained in:
2023-02-16 12:53:08 +00:00
parent a25bded298
commit 9e66c069a6
10 changed files with 108 additions and 10 deletions
+14 -1
View File
@@ -70,7 +70,20 @@ const ApiResponse = async (req, res) => {
ctx.textAlign = "left";
ctx.font = "50px AmaticSC";
//ctx.strokeText("WWW.GETAHEADCHRISTMAS.CO.UK", x, y);
ctx.fillText("WWW.GETAHEADCHRISTMAS.CO.UK", 40, 740);
var copyrightSymbol = 169; // 0xA9
var $now = new Date();
var $yearCount = $now.getFullYear();
ctx.fillText(
String.fromCharCode(copyrightSymbol) +
" " +
"WWW.GETAHEADCHRISTMAS.CO.UK " +
" " +
$yearCount,
40,
740
);
$yearCount;
console.log(ctx);
+12 -2
View File
@@ -70,8 +70,18 @@ const ApiResponse = async (req, res) => {
ctx.textAlign = "left";
ctx.font = "50px AmaticSC";
//ctx.strokeText("WWW.GETAHEADCHRISTMAS.CO.UK", x, y);
ctx.fillText("WWW.GETAHEADCHRISTMAS.CO.UK", 40, 740);
var copyrightSymbol = 169; // 0xA9
var $now = new Date();
var $yearCount = $now.getFullYear();
ctx.fillText(
String.fromCharCode(copyrightSymbol) +
" " +
"WWW.GETAHEADCHRISTMAS.CO.UK " +
" " +
$yearCount,
40,
740
);
console.log(ctx);
const png = canvas.toBuffer("image/png");
+12 -2
View File
@@ -62,8 +62,18 @@ const ApiResponse = async (req, res) => {
ctx.textAlign = "left";
ctx.font = "50px AmaticSC";
//ctx.strokeText("WWW.GETAHEADCHRISTMAS.CO.UK", x, y);
ctx.fillText("WWW.GETAHEADCHRISTMAS.CO.UK", 40, 740);
var copyrightSymbol = 169; // 0xA9
var $now = new Date();
var $yearCount = $now.getFullYear();
ctx.fillText(
String.fromCharCode(copyrightSymbol) +
" " +
"WWW.GETAHEADCHRISTMAS.CO.UK " +
" " +
$yearCount,
40,
740
);
console.log(ctx);
const png = canvas.toBuffer("image/png");
+12 -1
View File
@@ -62,7 +62,18 @@ const ApiResponse = async (req, res) => {
ctx.textAlign = "left";
ctx.font = "50px AmaticSC";
//ctx.strokeText("WWW.GETAHEADCHRISTMAS.CO.UK", x, y);
ctx.fillText("WWW.GETAHEADCHRISTMAS.CO.UK", 40, 740);
var copyrightSymbol = 169; // 0xA9
var $now = new Date();
var $yearCount = $now.getFullYear();
ctx.fillText(
String.fromCharCode(copyrightSymbol) +
" " +
"WWW.GETAHEADCHRISTMAS.CO.UK " +
" " +
$yearCount,
40,
740
);
console.log(ctx);