CMU Coding Bootcamp
at main 300 B view raw
1import express from "express"; 2import tasks from "./tasks.ts"; 3import books from "./books.ts"; 4 5const app = express(); 6const port = process.env["NODE_PORT"] ?? 5173; 7 8app.use("/tasks", tasks); 9app.use("/books", books); 10 11app.listen(port, () => { 12 console.log(`Server listening on port ${port}`); 13});