changes to address feedback

This commit is contained in:
Giuseppe Digilio
2021-01-12 10:42:46 +01:00
parent 480653cf8f
commit 2b8f436634
7 changed files with 5 additions and 12 deletions

View File

@@ -118,11 +118,6 @@ export function app() {
*/
server.use('/sitemap**', createProxyMiddleware({ target: `${environment.rest.baseUrl}/sitemaps`, changeOrigin: true }));
// TODO: implement data requests securely
server.get('/api/**', (req, res) => {
res.status(404).send('data requests are not yet supported');
});
/**
* Checks if the rateLimiter property is present
* When it is present, the rateLimiter will be enabled. When it is undefined, the rateLimiter will be disabled.