import express from "express"; import tasks from "./tasks.ts"; import books from "./books.ts"; import posts from "./posts.ts"; const app = express(); const port = process.env["NODE_PORT"] ?? 5173; app.use("/tasks", tasks); app.use("/books", books); app.use("/posts", posts); app.listen(port, () => { console.log(`Server listening on port ${port}`); });