add files

This commit is contained in:
tbS
2025-08-02 13:10:21 +02:00
commit aa4fa9ae0f
702 changed files with 103724 additions and 0 deletions

21
proxy/proxy.js Normal file
View File

@@ -0,0 +1,21 @@
const express = require('express');
const axios = require('axios');
const app = express();
const PORT = 3000;
app.use(express.json());
app.post('/proxy', async (req, res) => {
const { url } = req.body;
try {
const response = await axios.get(url);
res.send(response.data); // Die gesamte Website als Antwort an den Client senden
} catch (error) {
res.status(500).json({ error: 'Fehler beim Abrufen der externen Website' });
}
});
app.listen(PORT, () => {
console.log(`Proxy läuft auf http://localhost:${PORT}`);
});