Ghost/core/server/web/shared
Naz 260a47da83 🐛 Fixed 500 when instance has an invalid redirects config
refs https://linear.app/tryghost/issue/CORE-86/fix-failing-site-instance-when-redirects-file-is-invalid

- The site was returning a 500 for all routes whenever an invalid redirects file was uploaded.
- The cause of this issue surfacing was this change - 0962b3ed45 (diff-10784969d51d9abb9d620625a14b31661ff3f98dbfb0ea17186186a8151bacfaL35) . Previously an instance always had some sort of a working router and when the configuration failed it still functioned as an empty redirects router. After the change no router was mounted resulting in a 500
- Test cases fixing the problem will folllow
2021-10-04 15:25:37 +02:00
..
middlewares 🐛 Fixed 500 when instance has an invalid redirects config 2021-10-04 15:25:37 +02:00
index.js Removed unused middleware code 2020-04-22 07:15:51 +01:00
utils.js Moved validation utils into validation/upload 2020-04-22 07:21:41 +01:00