// Server.ts
import express from "express";
import bodyParser from "body-parser";
import { Effect } from "effect";
const app = express();
app.use(bodyParser.json());
const port = 3000;
import { send } from "./MyQueue.js";
app.post("/", (req, res) => {
Effect.runPromise(send(req.body));
res.send("recieved POST");
});
app.listen(port, () => {
console.log(`Example app listening on port ${port}`);
});
// Server.ts
import express from "express";
import bodyParser from "body-parser";
import { Effect } from "effect";
const app = express();
app.use(bodyParser.json());
const port = 3000;
import { send } from "./MyQueue.js";
app.post("/", (req, res) => {
Effect.runPromise(send(req.body));
res.send("recieved POST");
});
app.listen(port, () => {
console.log(`Example app listening on port ${port}`);
});