@prop_c/node-server
v1.0.7
Published
A simple node server
Downloads
8
Readme
A simple node server
How to use it
import { NodeServer } from "@prop_c/node-server";
const app = new NodeServer();
app.get("/", (req, res) => {
res.send("Hello World");
});
app.post("/post-route", (req, res) => {
const body = req.body;
res.status(200).json({
message: "Hello World",
});
});
app.listen(3000, () => {
console.log("Server running on port 3000");
});