Create viewCounter.js

This commit is contained in:
Andrey Flat 2025-06-22 15:54:37 +08:00 committed by GitHub
parent 723293a103
commit cc40d11020

View file

@ -0,0 +1,11 @@
let count = 0;
exports.handler = async function(event, context) {
count += 1;
return {
statusCode: 200,
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ count })
};
};