Skip to content

Commit ea0a58d

Browse files
committed
Fix /cloud-proxy/ and /site-proxy/ error messages when no additional path
1 parent d8412bf commit ea0a58d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,13 @@ app.get('/tts/synth', (req, res) => {
132132
handleResponse(res, api.getTTS(locale, gender, text));
133133
});
134134

135-
app.get('/cloud-proxy/*splat', (req, res) => {
135+
app.get('/cloud-proxy/{*_}', (req, res) => {
136136
res.status(404);
137137
res.type('text/plain');
138138
res.send('cloud proxy has been removed');
139139
});
140140

141-
app.get('/site-proxy/*splat', (req, res) => {
141+
app.get('/site-proxy/{*_}', (req, res) => {
142142
res.status(404);
143143
res.type('text/plain');
144144
res.send('site proxy has been removed');

0 commit comments

Comments
 (0)