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 559e2a1 commit 549d35e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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("/orders",apiOrders)
app.use("/payments",apiPays)
app.use("/api/products",apiProducts)
app.use("/api/orders",apiOrders)
app.use("/api/payments",apiPays)

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

0 comments on commit 549d35e

Please sign in to comment.