Merge pull request #153 from movableink/js-in-external-files

JS in external files
This commit is contained in:
Brad Rydzewski
2014-03-04 10:27:40 -08:00
17 changed files with 3618 additions and 104 deletions

View File

@@ -117,6 +117,7 @@ func setupDatabase() {
func setupStatic() {
box := rice.MustFindBox("assets")
http.Handle("/css/", http.FileServer(box.HTTPBox()))
http.Handle("/js/", http.FileServer(box.HTTPBox()))
// we need to intercept all attempts to serve images
// so that we can add a cache-control settings