change index.js
This commit is contained in:
parent
4dd37c0404
commit
23a08b0a5f
|
|
@ -5,7 +5,6 @@ app.use(cors());
|
||||||
|
|
||||||
app.get("/api/products", (req, res) => {
|
app.get("/api/products", (req, res) => {
|
||||||
const data = [
|
const data = [
|
||||||
|
|
||||||
{
|
{
|
||||||
PID: "N9K-C9372PX",
|
PID: "N9K-C9372PX",
|
||||||
VID: "V03",
|
VID: "V03",
|
||||||
|
|
@ -33,7 +32,6 @@ app.get("/api/products", (req, res) => {
|
||||||
];
|
];
|
||||||
res.status(200).send(data);
|
res.status(200).send(data);
|
||||||
});
|
});
|
||||||
|
|
||||||
const PORT = 8000;
|
const PORT = 8000;
|
||||||
|
|
||||||
app.listen(PORT, () => {
|
app.listen(PORT, () => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue