bookworms-slack-webhook
Version:
This is a simple module to add a route into your server and have slack updates.
19 lines (14 loc) • 425 B
JavaScript
import express from "express";
import { expressWorms } from "../../index.js";
const app = express();
const port = 3000;
await expressWorms(app, {
path: "https://raw.githubusercontent.com/thearegee/bookworms/main/demo/config/bookmarks.yaml",
});
app.get("/", (req, res) => {
res.send("Hello World!");
});
app.listen(port, () => {
console.log(`Example Express app listening on port ${port}`);
});
export default app;