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