mirror of
https://github.com/Mueller-Patrick/Betterzon.git
synced 2026-05-01 17:50:10 +00:00
BETTERZON-38: Added products example API endpoint
This commit is contained in:
@@ -6,6 +6,7 @@ import * as dotenv from "dotenv";
|
||||
import express from "express";
|
||||
import cors from "cors";
|
||||
import helmet from "helmet";
|
||||
import { productsRouter } from "./products/products.router";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
@@ -30,6 +31,7 @@ const app = express();
|
||||
app.use(helmet());
|
||||
app.use(cors());
|
||||
app.use(express.json());
|
||||
app.use("/products", productsRouter);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user