Skip to content

Commit

Permalink
Import routes from jobs router and mount them at specified path
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin-Quinn51 committed Nov 12, 2024
1 parent 6341ef1 commit f097b54
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import express, { type Request, type Response } from "express";
import "dotenv/config";
import jobRoutes from "./routes/jobRoutes.ts";

const app = express();
app.use(express.json());

app.use("/jobs", jobRoutes);

app.listen(process.env.PORT || 3000, () => {
console.log(`running on port ${process.env.PORT}`);
});

0 comments on commit f097b54

Please sign in to comment.