Skip to content

Commit

Permalink
añadido /api en server.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
UO264802 committed May 5, 2022
1 parent 1ed6ba5 commit b2fdd91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions restapi/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ app.use(bp.json());
app.use(express.json());

app.use("/api", api)
app.use("/products",apiProducts)
app.use("/api/products",apiProducts)
//app.use("/orders",apiOrders)
app.use("/payments",apiPays)
app.use("/api/payments",apiPays)

app.listen(port, ():void => {
console.log('Restapi listening on '+ port);
Expand Down

0 comments on commit b2fdd91

Please sign in to comment.