zooniverse / scribeAPI

scribe API
MIT License
80 stars 25 forks source link

Static assets routing #435

Closed nonword closed 9 years ago

nonword commented 9 years ago

Fixes:

  1. https://github.com/zooniverse/scribeAPI/issues/412
  2. But also, and primarily, this adds ability to serve static assets from project 'assets' folder. For example, in emigrant I have /project/emigrant/assets/images/logo.svg, which I can access at http://emigrantbank.herokuapp.com/images/logo.svg . Essentially anything that exists in /project/[active project key]/assets can be requested as if it exists in the /public folder.
  3. As a consequence of above, no longer using /public/index.html in favor of erb so that we can embed analytics and set window title before app js loads.