Swap order of apps & catch-all route (#7194)
Swap order of apps & catch-all route (#7194)

no issue

This small change swaps over the order in which the app routes, and catch-all `*` routes are processed.

This will have an impact on the behaviour of all of our internal apps. Both the private blogging and subscribers apps have a route where they render their own template. Private blogging has `/private/` which renders `private.hbs` and subscribers has a similar `/subscribe/` route (and in future `/unsubscribe/`).

Because these routes weren't listed in our reserved words list, it is possible for a blog to already have a post or a page that lives at `/private/` or, perhaps more likely `/subscribe/`. Prior to this change, their already setup page would be rendered instead of the app's page. After this change, the app's own route will be correctly rendered.

This is effectively a bug fix, because if you enable these features then you would expect them to work.

Moving forward, this change is absolutely required for the AMP app, because the route for that app is `*/amp/`. If the app routes aren't processed first, then this will not work.
jomahoney/Ghost,tidyui/Ghost,TryGhost/Ghost,jorgegilmoreira/ghost,vainglori0us/urban-fortnight,adam-paterson/blog,daimaqiao/Ghost-Bridge,acburdine/Ghost,ngosinafrica/SiteForNGOs,rizkyario/Ghost,e10/Ghost,JohnONolan/Ghost,olsio/Ghost,Gargol/Ghost,kevinansfield/Ghost,Kikobeats/Ghost,cwonrails/Ghost,novaugust/Ghost,olsio/Ghost,bitjson/Ghost,JohnONolan/Ghost,janvt/Ghost,kevinansfield/Ghost,singular78/Ghost,adam-paterson/blog,lukekhamilton/Ghost,obsoleted/Ghost,klinker-apps/ghost,singular78/Ghost,pollbox/ghostblog,rizkyario/Ghost,leninhasda/Ghost,novaugust/Ghost,disordinary/Ghost,ballPointPenguin/Ghost,BlueHatbRit/Ghost,tidyui/Ghost,stridespace/Ghost,acburdine/Ghost,ErisDS/Ghost,bitjson/Ghost,mohanambati/Ghost,acburdine/Ghost,ErisDS/Ghost,ivantedja/ghost,rizkyario/Ghost,ballPointPenguin/Ghost,sebgie/Ghost,klinker-apps/ghost,singular78/Ghost,lf2941270/Ghost,sebgie/Ghost,JohnONolan/Ghost,lf2941270/Ghost,cwonrails/Ghost,Gargol/Ghost,jorgegilmoreira/ghost,sebgie/Ghost,kevinansfield/Ghost,Kikobeats/Ghost,SkynetInc/steam,lukekhamilton/Ghost,letsjustfixit/Ghost,daimaqiao/Ghost-Bridge,dbalders/Ghost,dbalders/Ghost,ManRueda/manrueda-blog,vainglori0us/urban-fortnight,ErisDS/Ghost,letsjustfixit/Ghost,jomahoney/Ghost,mohanambati/Ghost,daimaqiao/Ghost-Bridge,ManRueda/manrueda-blog,SkynetInc/steam,stridespace/Ghost,letsjustfixit/Ghost,novaugust/Ghost,BlueHatbRit/Ghost,ngosinafrica/SiteForNGOs,disordinary/Ghost,e10/Ghost,ManRueda/manrueda-blog,ignasbernotas/nullifer,MadeOnMars/Ghost,jorgegilmoreira/ghost,dbalders/Ghost,obsoleted/Ghost,cwonrails/Ghost,pollbox/ghostblog,leninhasda/Ghost,MadeOnMars/Ghost,Kikobeats/Ghost,stridespace/Ghost,vainglori0us/urban-fortnight,TryGhost/Ghost,janvt/Ghost,TryGhost/Ghost,mohanambati/Ghost,ignasbernotas/nullifer,chevex/undoctrinate