Help with SQL commands to interact with a MySQL database
- Mac /usr/local/mysql/bin
- Windows /Program Files/MySQL/MySQL version/bin
- Xampp /xampp/mysql/bin
| const express = require("express"); | |
| const router = express.Router(); | |
| const Ad = require("../models/Ad"); | |
| // Route POST api/getgroup | |
| // Description Search all ads with criteria | |
| // Access Public | |
| router.post("/", async (req, res) => { | |
| const type = req.body.type; | |
| console.log("type", type); |