diff --git a/app.js b/app.js index 5ab128e4b..b639327ea 100644 --- a/app.js +++ b/app.js @@ -1,61 +1,41 @@ -const express = require("express"); +const express = require('express'); const app = express(); -const port = process.env.PORT || 3001; -app.get("/", (req, res) => res.type('html').send(html)); +const port = process.env.PORT || 10000; +app.use(express.json()); -const server = app.listen(port, () => console.log(`Example app listening on port ${port}!`)); +// Root ping – që të mos shfaqet “Hello from Render!” +app.get('/', (req, res) => { + res.type('text').send('Delete Account API është gati ✅'); +}); -server.keepAliveTimeout = 120 * 1000; -server.headersTimeout = 120 * 1000; +// *** Shembull funksioni – ti e ke të plotë te varianti yt *** +async function deleteOrAnonymize(customerId) { + // TODO: logjika jote ekzistuese (b2b fetch, PATCH/PUT, etj.) + return { action: 'anonymized', customerId }; +} -const html = ` - - -
-