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 18f14d0Copy full SHA for 18f14d0
‎api/javascript/search/server.js
@@ -66,18 +66,20 @@ class Server {
66
});
67
68
app.get('/search/:query', async (req, res) => {
69
- res.send(await this.searchQuery(req.params.query));
+ const search = encodeURIComponent(req.params.query)
70
+
71
+ res.send(await this.searchQuery(search));
72
-
73
74
app.get('/state', async (req, res) => {
75
res.send(await this.getState());
76
77
78
app.post('/hooks', (req, res) => {
79
res.send(200);
80
81
}
82
83
// We could filter out the properties that we don't want the frontend to have
84
async getState() {
85
await this.refreshState();
0 commit comments