We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f13a09c commit 84536abCopy full SHA for 84536ab
‎api/javascript/search/server.js
@@ -65,19 +65,23 @@ class Server {
65
}
66
});
67
68
+ app.set('query parser', 'simple');
69
+
70
app.get('/search/:query', async (req, res) => {
- res.send(await this.searchQuery(req.params.query));
71
+ const query = String(req.params.query)
72
73
+ res.send(await this.searchQuery(query))
74
-
75
76
app.get('/state', async (req, res) => {
77
res.send(await this.getState());
78
79
80
app.post('/hooks', (req, res) => {
81
res.send(200);
82
83
84
85
// We could filter out the properties that we don't want the frontend to have
86
async getState() {
87
await this.refreshState();
0 commit comments