Documenting, restructure and expand API

This commit is contained in:
2024-09-13 12:07:33 +02:00
parent 39ce77ea63
commit 2847bd940f
13 changed files with 877 additions and 74 deletions

View File

@@ -7,7 +7,6 @@ import { category } from './routes/category.routes'
import { product } from './routes/product.routes'
import { order } from './routes/order.routes'
import { account } from './routes/account.routes'
import { orderItem } from './routes/orderItem.routes'
const app = express()
const port = 3000
@@ -27,7 +26,6 @@ app.use("/categories", category)
app.use("/products", product)
app.use("/orders", order)
app.use("/accounts", account)
app.use("/orderItems", orderItem)
// Static files
const path = require('path')