Skip to content

Commit 85d603a

Browse files
committed
adding another endpoint to order service
1 parent 089ec3c commit 85d603a

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

order-service/server.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,11 @@ app.get("/orders",(req,res)=>{
55
res.json([{id:101, item: "laptop"},{id:102, item:"phone"}])
66
});
77

8-
app.listen(8080, ()=>console.log("order service running on port 8080"));
8+
app.get("/expiredOrders",(req,res)=>{
9+
res.json([{id:102, item: "Trackball"},{id:102, item:"windows xp"}])
10+
});
11+
12+
app.listen(8080, ()=>console.log("order service running on port 8080"));
13+
14+
15+

0 commit comments

Comments
 (0)