This commit is contained in:
parent
be408865cf
commit
ca26858e51
@ -6,7 +6,7 @@ const { Op } = require('sequelize');
|
|||||||
// GET - /search
|
// GET - /search
|
||||||
exports.getSearch = async function(req, res) {
|
exports.getSearch = async function(req, res) {
|
||||||
// decode URL search query
|
// decode URL search query
|
||||||
let query = req.params.query;
|
let query = req.query.query;
|
||||||
|
|
||||||
// fetch inventory items from database based on search query
|
// fetch inventory items from database based on search query
|
||||||
const results = await Item.findAll({
|
const results = await Item.findAll({
|
||||||
|
Loading…
Reference in New Issue
Block a user