delete unused files

This commit is contained in:
Peter Maquiran
2024-10-23 15:47:37 +01:00
parent f7c78c0c3c
commit 08f68940dc
3 changed files with 6 additions and 52 deletions
-23
View File
@@ -1,23 +0,0 @@
const proxy = require("http-proxy-middleware");
module.exports = function (app) {
app.use(
proxy("/mfp/api/imfpush/", {
target: "http://gpr-dev-10.gabinetedigital.local:9080",
changeOrigin: true,
pathRewrite: function (path, req) {
return path.replace("/mfp/api", "");
},
})
);
app.use(
proxy("/mfp/api", {
target: "http://gpr-dev-10.gabinetedigital.local:9080",
changeOrigin: true,
pathRewrite: function (path, req) {
console.log("Rewrite in /mfp/api: ", path);
return path;
},
})
);
};
-23
View File
@@ -1,23 +0,0 @@
// src/shared-worker.js
self.onconnect = function (event) {
const port = event.ports[0];
port.onmessage = function (e) {
const message = e.data;
console.log('Received from client:', message);
// Echo the message back to all connected clients
port.postMessage('Echo: ' + message);
}
// Optional: broadcast messages to all connected clients
function broadcast(message) {
self.clients.forEach(client => {
client.postMessage(message);
});
}
// Example of broadcasting a message
broadcast('Shared Worker connected');
}