mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +00:00
set params an object by default
This commit is contained in:
parent
4d59accafe
commit
69d4a50a04
@ -6,7 +6,7 @@ export default {
|
|||||||
route: "/",
|
route: "/",
|
||||||
middlewares: ["withOptionalAuthentication"],
|
middlewares: ["withOptionalAuthentication"],
|
||||||
fn: async (req, res) => {
|
fn: async (req, res) => {
|
||||||
const { keywords = "", params } = req.query
|
const { keywords = "", params = {} } = req.query
|
||||||
|
|
||||||
let suggestions = {}
|
let suggestions = {}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user