Skip to content

Commit 6353ba8

Browse files
Merge pull request #16 from codingforentrepreneurs/dev
Automated PR from Dev Stage
2 parents dc647b8 + 640eb24 commit 6353ba8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ app.get("/path", (req, res, next) => {
2727
});
2828

2929

30-
app.get("/leads", async (req, res, next) => {
30+
app.get("/api/leads", async (req, res, next) => {
3131
const results = await crud.listLeads()
3232
return res.status(200).json({
3333
results: results,
3434
});
3535
});
3636

37-
app.post("/leads", async (req, res, next) => {
37+
app.post("/api/leads", async (req, res, next) => {
3838
// POST -> create data
3939
const postData = await req.body
4040
// validation???

0 commit comments

Comments
 (0)