|
@@ -26,8 +26,8 @@ func main() {
|
26
|
26
|
env.TemplateSet = ts
|
27
|
27
|
r := mux.NewRouter()
|
28
|
28
|
r.HandleFunc("/", handlers.IndexHandler)
|
29
|
|
- r.HandleFunc("/js/client.js", isokit.GopherjsScriptHandler)
|
30
|
|
- r.HandleFunc("/js/client.js.map", isokit.GopherjsScriptMapHandler)
|
|
29
|
+ r.Handle("/js/client.js", isokit.GopherjsScriptHandler(WebAppRoot))
|
|
30
|
+ r.Handle("/js/client.js.map", isokit.GopherjsScriptMapHandler(WebAppRoot))
|
31
|
31
|
r.Handle("/template-bundle", handlers.TemplateBundleHandler(&env))
|
32
|
32
|
|
33
|
33
|
fs := http.FileServer(http.Dir(WebAppRoot + "/static"))
|